Friday, March 6, 2009

SETS

Set Theory

2.1 Symbols and Terminology

Set: a collection of objects

Elements (members): objects belonging to a set

There are three ways to designate a set:

1. Word description

2. Listing method

3. Set-builder notation

Ex: 1. The set of even counting numbers less than ten

2. { 2, 4, 6, 8 }

3. { x | x is an even counting number }

We use CAPITAL letters to denotes names of sets usually A, B, and C.

We use lower case letters for elements of sets.

Ex: A = { a, b, c}

Empty Set (null set): is the set containing no elements.

Notation: { } or clip_image002 are ways of denoting the empty set

{clip_image002[1]} is not the empty set {0} also is not the empty set

Sets of Real Numbers

Natural (counting) numbers: { 1, 2, 3, 4, 5, …}

Whole numbers: { 0, 1, 2, 3, 4, 5, …}

Integers: { …-3, -2, -1, 0, 1, 2, 3, …}

Rational numbers: any number that can be written in the form clip_image004 if a and b are intergers and b clip_image0060.

Ex: { 5, -4, ¾, .25, .3333…. }

Irrational numbers: number that aren’t rational. IE: numbers that can not be expressed as fractions.

Ex: { clip_image008 }

Cardinal Number (cardinality): the number of elements in a set; repeated elements should not be counted more than once.

Notation: n(A) = “n of A” = is the cardinal number of set A.

Finite Set: if the cardinal number of the set can be expressed as a whole number.

Ex: {1,2,3,4,a,b,c}

Infinite Set: if the cardinal number of a set can not be expressed as a whole number.

Ex: The set of counting numbers

Symbol Notation

clip_image010:is and element of

clip_image012:is not an element of

Ex: A={1,2,3} than 2clip_image013A and 4clip_image014A

Set Equality

Set A is equal to set B provided the following two conditions are met:

1. Every element in set A is an element is set B

2. Every element in set B is an element in set A

Ex: A={1,2,3} B={1,2,1,2,1,2,1,3,3,3,3,3} then A = B

2.2 Venn Diagrams and Subsets

Universal set: the set of all elements to be discussed: this is sometimes implied or directly given.

Notation: U = universal set

Venn diagram: a visual way of depicting the relationship between sets using a rectangle to denote the universal set and circles to denote sets with in the universal set.

The Compliment of a Set

For any set A within the universal set U, the compliment of A is the set of elements of U that are not elements of A

Notation: A’ = compliment of set A = {x | xclip_image016 U and xclip_image018A}

Ex: U = { 1,2,3,4}, A={1,2}, A’ = {3,4}

Subset of a Set: Set A is a subset of set B if every element in set a is an element of set B

Notation: Aclip_image020B = “Set A is a subset of set B”

Ex: A={1,2,3} B={1,2,3,4,5,6} then Aclip_image020[1]B

Alternative Def’n for Equality of sets

Set A = Set B if Aclip_image020[2]B and Bclip_image020[3]A

Proper Subset of a Set: Set A is a proper subset of set B if Aclip_image020[4]B and set A is NOT equal to set B.

Notation: Aclip_image022 B = “set A is a proper subset of set B”

Ex: A={1,2,3} B={1,2,3,4} then Aclip_image022[1] B

Finding the number of Subsets and Proper Subsets:

The number of subsets of a given set = 2 n

if n = # of elements in a set.

The number of proper subsets of a given set = 2 n - 1

if n = # of elements in a set.

2.3 Set Operations and Cartesian Products

Intersection of Sets: the intersection of sets A and B, written “clip_image024”, is the set of all elements common to both set A and set B, or clip_image025 = { x | xclip_image013[1]A and xclip_image013[2]B } .

Ex: If A = {1,2,3} B = {3,4,5} then clip_image025[1]= { 3 }

Union of Sets: the union of set A and set B, written “clip_image028”, is the set of all elements belonging to either set A or set B or both, or clip_image028[1] = { x | xclip_image013[3]A or xclip_image013[4]B }.

Ex: If A = {1,2,3} and B = {2,3,4} then clip_image028[2]= {1,2,3,4}

Difference of Sets: the difference of set A and set B, written “A – B”, is the set of all elements belonging to set A and not to set B, or A – B = { x | xclip_image013[5]A and xclip_image030B }

Ex: If A = {1,2,3,} and B = {3,4,5} then A – B = {1,2}

Ordered Pairs: in the ordered pair (a,b), a is called the first component and b is called the second component. In general (a,b)clip_image032(b,a). Two ordered pairs are equal only if there first components are equal and their second components are equal, (a,b) = (c,d) if a = c and b = d.

Ordered pairs are NOT sets

Cartesian Product of Sets: the Cartesian product of sets A and B, written A x B, is

A x B = {(a,b)| aclip_image034A and bclip_image034[1]B}.

Ex: Let A = {1,2,3} and B = {a,b} then A x B = {(1,a),(1,b),(2,a),(2,b),(3,a),(3,b)}

Cardinal Number of a Cartesian Product: If n(A) = a and n(B) = b, then n(AxB) = n(A) x n(B) = n(B) x n(A) = ab

De Morgan’s Laws: for any sets A and B

(A clip_image040 B)’ = A’ clip_image042 B’

(A clip_image042 B) ‘= A’ clip_image040 B’

2.4 Cardinal Numbers and Surveys

Cardinal Number Formula: for any sets A and B,

clip_image036

clip_image038

Ex: Find n(Aclip_image040B) if n(A) = 3, n(B) = 4, and n(Aclip_image042B) = 2

2.5 Infinite Sets and Their Carndinalities

One-to-One Correspondence: there will be a one-to-one correspondence between two sets A and B if each element in set A is paired with an element of set B and Each element in set B is paired with each element in set A.

Equivalent Sets: two sets are equivalent, written A~B, if you can put the two sets in a one-to-one correspondence.

Algebra of sets

Associative laws

A clip_image040(B clip_image040 C) = (A clip_image040B)clip_image040 C

A clip_image042(B clip_image042 C) = (A clip_image042B) clip_image042 C

Commutative laws

A clip_image040 B = B clip_image040 A

A clip_image042 B = B clip_image042 A

Identity laws

A clip_image040 clip_image002[2] = A

A clip_image042 U = A

Idempotent laws

A clip_image040 A = A

Aclip_image042 A = A

Distributive laws

A clip_image042(B clip_image040 C) = (A clip_image042B) clip_image040 (A clip_image042 C)

A clip_image040 (B clip_image042C) = (A clip_image040B) clip_image042 (A clip_image040 C)

Complement laws

A clip_image040 A’ = U

A clip_image040 A’= clip_image002[2]

Example:

Each of the 63 first-year students studying computing at the Univ. can study a number of optional units. If 16 chose to study the accounting option, 37 chose to study the business option and 5 studied both of these options, how many took neither accounting nor business.

A ={computing students who took the accounting option}

B ={computing students who took the business option}

Then |A| = 16 |B| = 37 and |A clip_image042 B| = 5

|A clip_image040 B| = 16 + 37 – 5 = 48

63 students

- 48 who took accounting or business or both

15 took neither

 clip_image043

              11           5              32

2.6. Power sets

The set of all subsets of a set A is called the power set of A and denoted as P(A)

For example, if A = {a,b}, P(A) = {clip_image002[2], {a}, {b}, {a,b}}.

If S is the set {x, y, z}, then the complete list of subsets of S is as follows:

  • { } (also denoted clip_image044, the empty set)
  • {x}
  • {y}
  • {z}
  • {x, y}
  • {x, z}
  • {y, z}
  • {x, y, z}

and hence the power set of S is

clip_image045

The power set P({1, 2, 3}) of {1, 2, 3} is equal to the set

{{1, 2, 3}, {1, 2}, {1, 3}, {2, 3}, {1}, {2}, {3}, clip_image044[1]}.

The cardinality of the original set is 3, and the cardinality of the power set is 23, or 8.

No comments: