Docsity

Discrete Mathematics. Basic Structures: Sets, Functions, Sequences, Sums, and Matrices, Slides of Discrete Mathematics

Partial preview of the text

Download Discrete Mathematics. Basic Structures: Sets, Functions, Sequences, Sums, and Matrices and more Slides Discrete Mathematics in PDF only on Docsity!

Basic Structures: Sets, Functions,

Sequences, Sums, and Matrices

Chapter 2 Edited by Shih-Tsung Liang

Chapter Summary

  • Sets (้›†ๅˆ)
    • The Language of Sets
    • Set Operations
    • Set Identities
  • Functions (ๅ‡ฝๆ•ธ)
    • Types of Functions
    • Operations on Functions
    • Computability
  • Sequences and Summations (ๅบๅˆ—่ˆ‡ๅŠ ็ธฝ)
    • Types of Sequences
    • Summation Formula
  • Set Cardinality (้›†ๅˆๅŸบๆ•ธ)
    • Countable Sets
  • Matrices (็Ÿฉ้™ฃ)
    • Matrix Arithmetic

Sets

  • A set is an unordered collection of objects.
    • the students in this class
    • the chairs in this room
  • The objects in a set are called the elements

(ๅ…ƒ็ด ), or members of the set. A set is said to

contain its elements.

  • The notation a โˆˆ A denotes that a is an

element of the set A.

  • If a is not a member of A, write a โˆ‰ A

Describing a Set: Roster Method (็ชฎ่ˆ‰ๆณ•)

  • S = { a,b,c,d}
  • Order not important S = { a,b,c,d} = { b,c,a,d}
  • Each distinct object is either a member or not; listing more than once does not change the set. S = { a,b,c,d} = { a,b,c,b,c,d}
  • Ellipses (โ€ฆ) may be used to describe a set without listing all of the members when the pattern is clear. S = { a,b,c,d, โ€ฆ, z }

Some Important Sets

N = natural numbers (่‡ช็„ถๆ•ธ)= { 0 ,1,2,3โ€ฆ.} Z = integers (ๆ•ดๆ•ธ) = {โ€ฆ,-3,-2,-1,0,1,2,3,โ€ฆ} Zโบ = positive integers (ๆญฃๆ•ดๆ•ธ) = {1,2,3,โ€ฆ..} R = set of real numbers (ๅฏฆๆ•ธ) R

= set of positive real numbers (ๆญฃๅฏฆๆ•ธ) C = set of complex numbers (่ค‡ๆ•ธ) Q = set of rational numbers (ๆœ‰็†ๆ•ธ)

Set-Builder Notation

  • Specify the property or properties that all members must satisfy: S = { x | x is a positive integer less than 100} O = { x | x is an odd positive integer less than 10} O = { x โˆˆ Zโบ | x is odd and x < 10}
  • A predicate may be used: S = { x | P( x )}
  • Example: S = { x | Prime( x )}
  • Positive rational numbers : Q + = { x โˆˆ R | x = p/ q, for some positive integers p, q}

Universal Set and Empty Set

  • The universal set (ๅฎ‡้›†ๅˆ) U is the set containing everything currently under consideration. - Sometimes implicit - Sometimes explicitly stated. - Contents depend on the context.
  • The empty set (็ฉบ้›†ๅˆ) is the set with no elements. Symbolized โˆ…, but {} also used. U Venn Diagram a e i o u V John Venn (1834-1923) Cambridge, UK

Some things to remember

  • Sets can be elements of sets.

{{1,2,3}, a, { b,c}}

{N,Z,Q,R}

  • The empty set is different from a set containing the empty set. โˆ… โ‰  { โˆ… }

Subsets (ๅญ้›†ๅˆ)

Definition : The set A is a subset of B , if and only if every element of A is also an element of B.

  • The notation A โІ B is used to indicate that A is a subset of the set B.
  • A โІ B holds if and only if is true.
  1. Because a โˆˆ โˆ… is always false, โˆ… โІ S ,for every set S.
  2. Because a โˆˆ S โ†’ a โˆˆ S, S โІ S, for every set S.

Showing a Set is or is not a Subset of Another Set

  • Showing that A is a Subset of B : To show that A โІ B , show that if x belongs to A, then x also belongs to B.
  • Showing that A is not a Subset of B : To show that A is not a subset of B , A โŠˆ B , find an element x โˆˆ A with x โˆ‰ B. (Such an x is a counterexample to the claim that x โˆˆ A implies x โˆˆ B .) Examples :
  1. The set of all computer science majors at your school is a subset of all students at your school.
  2. The set of integers with squares less than 100 is not a subset of the set of nonnegative integers.

Proper Subsets (็œŸๅญ้›†)

Definition : If A โІ B , but A โ‰  B , then we say A is a proper subset of B , denoted by A โŠ‚ B. If A โŠ‚ B , then is true. Venn Diagram U B A

Set Cardinality

Definition : If there are exactly n distinct elements in S where n is a nonnegative integer, we say that S is finite. Otherwise it is infinite. Definition : The cardinality of a finite set A, denoted by | A |, is the number of (distinct) elements of A. Examples :

  1. |รธ| = 0
  2. Let S be the letters of the English alphabet. Then | S | = 26
  3. |{1,2,3}| = 3
  4. |{รธ}| = 1
  5. The set of integers is infinite.

Cartesian Product

  • The ordered n-tuple (n- ๅ…ƒ็ต„ ) (a 1 ,a 2 ,โ€ฆ..,a n ) is the ordered collection that has a 1 as its first element and a 2 as its second element and so on until a n as its last element.
  • Two n-tuples are equal if and only if their corresponding elements are equal.
  • 2 - tuples are called ordered pairs.
  • The ordered pairs ( a, b) and ( c,d) are equal if

and only if a = c and b = d.

Cartesian Product

Definition : The Cartesian Product (็ฌ›ๅกๅ…’ไน˜็ฉ)of two sets A and B , denoted by A ร— B is the set of ordered pairs (a,b) where a โˆˆ A and b โˆˆ B. Example : A = { a,b } B = {1,2,3} A ร— B = {( a ,1),( a ,2),( a ,3), ( b ,1),( b, 2),( b, 3)} Renรฉ Descartes (1596-1650)