1 / 69

Sets and Set Operations The Number of Elements in a Finite Set The Multiplication Principle

6. Sets and Set Operations The Number of Elements in a Finite Set The Multiplication Principle Permutations and Combinations. Sets and Counting. 6.1. Sets and Set Operations. Set Terminology and Notation. A set is a well-defined collection of objects .

arissa
Télécharger la présentation

Sets and Set Operations The Number of Elements in a Finite Set The Multiplication Principle

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 6 • Sets and Set Operations • The Number of Elements in a Finite Set • The Multiplication Principle • Permutations and Combinations Sets and Counting

  2. 6.1 Sets and Set Operations

  3. Set Terminology and Notation • A set is a well-defined collection of objects. • Sets are usually denoted by upper case letters such as A, B, C, … • The objects of a set are called elements, or members, of a set. • Elements are usually denoted by lower case letters such as a, b, c, …

  4. Set Terminology and Notation • The elements of a set may be displayed by listing each element between braces. • For example, using roster notation, the set A consisting of the first three letters of the English alphabet is written A = {a, b, c} • The set B of all letters of the alphabet may be written B = {a, b, c, …, z}

  5. Set Terminology and Notation • Another notation commonly used is set-builder notation. • Here, a rule is given that describes the definite property or properties an objectx must satisfy to qualify for membership in the set. • For example, the set B of all letters of the alphabet may be written as B = {x | xis a letter of the English alphabet} and is read “B is the set of all elements of x such that x is a letter of the English alphabet.”

  6. Set Terminology and Notation • There is also terminology regarding to whether an elementbelongs to a set or not: • If a is an element of a set A, we write aA and read “abelongs toA” or “a is an element ofA.” • If a is not an element of a set A, we write aA and read “adoes not belong toA” or “a is not an element ofA.”

  7. Set Equality • Two sets A and B are equal, written A = B, if and only if they have exactly the same elements.

  8. Example • Let A, B, and C be the sets • Then, A = B since they both contain exactly the same elements. • Note that the order in which the elements are displayed is immaterial. • Also, A≠ C since uA but uC. • Similarly, we conclude that B≠ C. Example 1, page 314

  9. Subset • If every element of a set A is also an element of a set B, then we say that A is a subset of B and write AB. • By this definition, two sets A and B are equal if and only if (1)A B and (2)BA.

  10. Example • Consider again the sets A, B, and C • We find that C B since every element of C is also an element of B. • Also, A is not a subset of C, written A C, since uA but uC. Example 2, page 315

  11. Empty Set • The set that containsno elements is called the empty set and is denoted by Ø. • The empty set, Ø, is a subset of every set. • To see this, observe that Ø has no elements and thus contains no element that is not also in A.

  12. Example • List all subsets of the set A = {a, b, c}. Solution • There is one subset containing no elements, Ø. • There are three subsets consisting of one element: {a}, {b}, {c} • There are also three subsets consisting of two elements: {a, b}, {a, c}, {b, c} • Finally there is one subset consisting of three elements, the set A itself. • Therefore, the subsets of A are Ø, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c} Example 4, page 315

  13. Universal Set • A universal set is the set of all elements of interest in a particular discussion. • It is the largest set in the sense that all sets considered in the discussion of the problem are subsets of the universal set.

  14. Example • If the problem at hand is to determine the ratio of female to male students in a college, then the logical choice of a universal set is the set consisting of the whole student body of the college. • If the problem is to determine the ratio of female to male students in the business department of the college, then the set of all students in the business department may be chosen as the universal set. Example 5, page 316

  15. Set Union • Let A and B be sets. The union of A and B, written A B, is the set of all elements that belong to either A or B or both. A B = {x | x A or x B or both}

  16. Example • If A = {b, c, d, e} and B = {a, b, c, d}, then A B = {a, b, c, d, e}. B A b c d a e Example 7, page 317

  17. Set Intersection • Let A and B be sets. The set of elements common to with the sets A and B, written A B, is called the intersection of A and B. A B = {x | x A and x B}

  18. Example • If A = {b, c, d, e} and B = {a, b, c, d}, then A B = {b, c, d}. B A b c d Example 8, page 317

  19. Complement of a Set • If U is a universal set and A is a subset of U, then the set of all elements in U that are not in A is called the complement of A and is denoted Ac. Ac= {x | x U and x A}

  20. Example • If U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and A = {2, 4, 6, 8, 10}, then Ac= {1, 3, 5, 7, 9}. U Ac A

  21. Set Complementation • If U is a universal set and A is a subset of U, then a.Uc = Ø b. Øc = U c. (Ac)c = A d.A Ac = U e. A Ac = Ø

  22. Properties of Set Operations • Let U is a universal set. If A , B, and C are arbitrary subsets of U, then we have the following laws: • Commutative law for union A B = B A

  23. Properties of Set Operations • Let U is a universal set. If A , B, and C are arbitrary subsets of U, then we have the following laws: • Commutative law for intersection A B = B A

  24. Properties of Set Operations • Let U is a universal set. If A , B, and C are arbitrary subsets of U, then we have the following laws: • Associative law for union A (B  C) = (A B)C

  25. Properties of Set Operations • Let U is a universal set. If A , B, and C are arbitrary subsets of U, then we have the following laws: • Associative law for intersection A (B  C) = (A B)C

  26. Properties of Set Operations • Let U is a universal set. If A , B, and C are arbitrary subsets of U, then we have the following laws: • Distributive law for union A (B  C) = (A B)(A C)

  27. Properties of Set Operations • Let U is a universal set. If A , B, and C are arbitrary subsets of U, then we have the following laws: • Distributive law for intersection A (B  C) = (A B)(A C)

  28. Set Operations • Let U is a universal set. If A , B, and C are arbitrary subsets of U, then we have the following laws: • De Morgan’s Laws (A  B)c = AcBc

  29. Set Operations • Let U is a universal set. If A , B, and C are arbitrary subsets of U, then we have the following laws: • De Morgan’s Laws (A  B)c = Ac Bc

  30. Example • Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} A = {1, 2, 4, 8, 9} B = {3, 4, 5, 6, 8} • Verify by direct computation that (A  B)c = AcBc. Solution • A  B = {1, 2, 3, 4, 5, 6, 8, 9}, so (A  B)c = {7, 10}. • Moreover, Ac= {3, 5, 6, 7, 10} and Bc= {1, 2, 7, 9, 10}, so AcBc= {7, 10}. Example 13, page 319

  31. Applied Example: Automobile Options • Let U denote the set of all cars in a dealer’s lot, and let A = {xU|xis equipped with automatic transmission} B = {xU|xis equipped with air conditioning} C = {xU|xis equipped with side air bags} • Find an expression in terms of A, B, and C for each of the following sets: • The set of cars with at least one of the given options. • The set of cars with exactly one of the given options. • The set of cars with automatic transmission and side air bags butno air conditioning. Applied Example 14, page 319

  32. Applied Example: Automobile Options • Let U denote the set of all cars in a dealer’s lot, and let A = {xU|xis equipped with automatic transmission} B = {xU|xis equipped with air conditioning} C = {xU|xis equipped with side air bags} Solution • The set of cars with at least one of the given options is given by A  B  C: U B A C Applied Example 14, page 319

  33. Applied Example: Automobile Options • Let U denote the set of all cars in a dealer’s lot, and let A = {xU|xis equipped with automatic transmission} B = {xU|xis equipped with air conditioning} C = {xU|xis equipped with side air bags} Solution • The set of cars with exactly one of the given options is given by (A  BcCc) (B  CcAc) (C  AcBc): U B A C Applied Example 14, page 319

  34. Applied Example: Automobile Options • Let U denote the set of all cars in a dealer’s lot, and let A = {xU|xis equipped with automatic transmission} B = {xU|xis equipped with air conditioning} C = {xU|xis equipped with side air bags} Solution • The set of cars with automatic transmission and side air bags butno air conditioning is given by A C Bc: U B A C Applied Example 14, page 319

  35. 6.2 n(Ø) = 0 n(A  B) = n(A) + n(B) – n(AB) n(A  B  C) = n(A) + n(B) + n(C) – n(AB) – n(AC) – n(BC) + n(AB C) The Number of Elements in a Finite Set

  36. Counting Elements of a Set • The number of elements in a finite set is determined by simply counting the elements in the set. • If A is a set, then n(A) denotes the number of elements in A. • For example, if A = {1, 2, 3, …,20} B = {a, b} C = {8} then n(A) = 20, n(B) = 2, and n(C) = 1. • The empty set has no elements in it, so n(Ø) = 0.

  37. Counting Elements of a Set • If A and B are disjoint sets, then n(A  B) = n(A) + n(B) Example • If A = {a, c, d} andB = {b, e, f, g}, then we see that A  B ={a, b, c, d, e, f, g} so,n(A  B) = 7. • On the other hand, n(A) + n(B) = 3 + 4 = 7. • Thus, n(A  B) = n(A) + n(B) holds true in this case, because A and B are disjoint sets: AB =Ø. Example 1, page 323

  38. Counting Elements of a Set • In the general case, A and Bneed not bedisjoint, which leads us to the formula n(A  B) = n(A) + n(B) – n(AB) Example • If A = {a, b, c, d , e} and B = {b, d, f, h}, then, A  B ={a, b, c, d, e, f, h} so n(A  B) = 7. • On the other hand, (AB) = {b, d}, so n(A  B) = 2. • We also see that n(A) = 5 and n(B) = 4. • Thus, we find that the formula holds true: n(A) + n(B) – n(AB) = 5 + 4 – 2 = 7 = n(A  B) Example 2, page 324

  39. Applied Example: Consumer Surveys • In a survey of 100 coffee drinkers, it was found that 70 take sugar, 60 take cream, and 50 take bothsugar and cream with their coffee. How many coffee drinkers take sugar, cream, or both with their coffee? Solution • Let U be the set of 100 coffee drinkers surveyed, and let A = {x∈ U|x takes sugar} andB = {x∈ U|x takes cream}. • Then, n(A) = 70,n(B) = 60, and n(AB) = 50. • The set of coffee drinkers who take sugar, cream, or both with their coffee is given by A  B. • Using the formula for counting elements of a union of not disjoint sets, we find n(A  B) = n(A) + n(B) – n(AB) = 70 +60 – 50 = 80 • Thus, 80 out of the 100 surveyed coffe drinkers take sugar, cream, or both with their coffee. Applied Example 3, page 324

  40. Counting Elements of a Set • Similar rules can be derived for cases involving more than two sets. • For example, if we have three setsA, B, and C, we find that n(A  B  C) = n(A) + n(B) + n(C) – n(AB) – n(AC) – n(BC) + n(AB C)

  41. 6.3 The Multiplication Principle

  42. The Fundamental Principle of Counting The Multiplication Principle • Suppose there are m ways of performing a taskT1 and n ways of performing a taskT2. • Then, there are mnways of performing the taskT1followed by the taskT2.

  43. Example • Three trunk roads connect town A and town B, and two trunk roads connect town B and town C. • Use the multiplication principle to find the number of ways a journey from town A to town C via town B may be completed. Solution • There are three ways of performing the first task: • Going from town A to town B. • Then, there are two ways of performing the second task: • Going from town B to town C. • The multiplication principle says there are 3 · 2 = 6 ways to complete a journey from town A to town C via town B. Example 1, page 330

  44. Example • Three trunk roads connect town A and town B, and two trunk roads connect town B and town C. • Use the multiplication principle to find the number of ways a journey from town A to town C via town B may be completed. Solution • The six ways to perform the desired task can be seen in the diagram below: • The six possible routes are: (I, a),(I, b),(II, a),(II, b),(III, a),(III, b) I II III a b A B C Example 1, page 330

  45. Example • Three trunk roads connect town A and town B, and two trunk roads connect town B and town C. • Use the multiplication principle to find the number of ways a journey from town A to town C via town B may be completed. Solution • They can also be seen with the aid of a tree diagram: C B a (I, a) b (I, b) a (II, a) b (II, b) a (III, a) b (III, b) I II III A Example 1, page 330

  46. Generalized Multiplication Principle • Suppose a taskT1 can be performed in N1ways, a taskT2 can be performed in N2ways, …, and, finally, a taskTn can be performed in Nnways. • Then, the number ofways of performing tasksT1, T2, …, Tnin succession is given by the product N1 N2···Nn

  47. Example • A coin is tossed 3 times, and the sequence of heads and tails is recorded. • Use the generalized multiplication principle to determine the number of possible outcomes of this activity. Solution • The coin may land in two ways. • Therefore, in three tosses the number of outcomes (sequences) is given by 2 · 2 · 2 = 8 Example 3, page 332

  48. Applied Example: Combination Locks • A combination lock is unlocked by dialing a sequence of numbers: • First to the left, then to the right, and to the left again. • If there are ten digits on the dial, determine the number of possible combinations. Solution • There are ten choices for the first number, followed by ten for the second and ten for the third, so by the generalized multiplication principle there are 10 · 10 · 10 = 1000 possible combinations. Applied Example 4, page 332

  49. 6.4 1! = 1 2! = 2 ·1 = 2 3! = 3 ·2 ·1 = 6 4! = 4 ·3 ·2 ·1 = 24 5! = 5 ·4 ·3 ·2 ·1 = 120 . . . 10! = 10 ·9 ·8 ·7 ·6 · 5 ·4 ·3 ·2 ·1 = 3,628,800 Permutations and Combinations

  50. Permutations • Given a set of distinct objects, a permutation of the set is an arrangement of these objects in a definite order. • Order matters very often in the real world. • For example, suppose the winning number for the first prize in a raffle is 9237. • Then, the number 2973cannot be the winner, even though it contains the same digits as 9237. • Here, the set of the four numbers9, 2, 3, and 7 are arranged in a different order: one arrangement results in a prize winner, the other does not.

More Related