24
2.1 – Sets Definition: Notation: • Uppercase letters A, B, S, T, etc. • Set braces, e.g. S={2, red, water, {1}} • Membership: means means • {2,2,4,5,4,7,2}=

2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Embed Size (px)

Citation preview

Page 1: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

2.1 – Sets Definition:

Notation: • Uppercase letters A, B, S, T, etc.• Set braces, e.g. S={2, red, water, {1}}• Membership:

means means

• {2,2,4,5,4,7,2}=

Page 2: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Examples:

• Let S be the set of all of the people in this room.

• Standard sets:

Page 3: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Set-Builder Notation

• General form is { x | P(x) } for some predicate P(x).

• Examples:

• Symbol | or : in the notation means

Page 4: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Using Set-Builder Notation to Make Domains Explicit

• Examples

}

{𝑥∈ℤ∨𝑥2<10 }

{𝑥∈ℕ∨𝑥2<10 }

Page 5: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Examples:

(a) Set of all integers which are perfect squares.

(b) {2,4,6}

Page 6: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Venn Diagrams

• “Universal Set” U

• Picturing set as a restricted portion of the universal set

Page 7: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Special Kinds of Sets

• Empty set

• Question:

Page 8: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Subsets

• Notation • Define using the predicate calculus:

• Questions: For all sets S,.– Is ?– Is ?

Page 9: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Is ?

Page 10: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Is ?

Page 11: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Set Equality

if and only if

Page 12: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Miscellaneous

• Proper subsets

• Cardinality of a set

• Finite sets

• Infinite sets

Page 13: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

New Sets from Old

• The power set

• Cartesian products (ordered pairs, n-tuples)

Page 14: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Examples: 𝐵={1,2 } ,𝐶= {𝑎 ,𝑏 ,𝑐 }

𝐵×𝐶=¿

|𝐵×𝐶|=¿

𝑃 (∅ )=¿

𝑃 ( {∅ } )=¿

𝑃 (𝐵 )=¿

Page 15: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

2.2 Set Operations

• The union of two sets and is the set of all elements which are either in or in .

• Set-Builder notation:

• Venn Diagram:

Page 16: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Intersection

• The intersection of two sets and is the set of all elements common to both.

• Set-builder notation:

• Venn Diagram:

Page 17: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Generalized Unions and Intersections

• These are well-defined because of associativity

Page 18: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

More Definitions

• Disjoint sets:

• Mutually Disjoint collections of sets:

Page 19: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

More Definitions

• Principle of Inclusion-Exclusion

• Set Difference

Page 20: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Set Complement

• Definition of set complement:

• Venn Diagram:

Page 21: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

Proving Set Identities (Listed in Table 1 on page 124)

𝐴∩ ( 𝐴∪𝐵 )=𝐴 (2nd Absorption Law)

Page 22: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples
Page 23: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples

𝐴∪𝐵=𝐴∩𝐵 1st De Morgan Law

Page 24: 2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples