Chapter 11 Counting Methods © 2008 Pearson Addison-Wesley. All rights reserved
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 11: Counting Methods 11.1 Counting by Systematic Listing 11.2 Using the Fundamental Counting Principle 11.3 Using Permutations and Combinations 11.4 Using Pascal’s Triangle 11.5 Counting Problems Involving “Not” and “Or”
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 11-5 Counting Problems Involving “Not” and “Or”
© 2008 Pearson Addison-Wesley. All rights reserved Counting Problems Involving “Not” and “Or” Problems Involving “Not” Problems Involving “Or”
© 2008 Pearson Addison-Wesley. All rights reserved Counting Problems Involving “Not” and “Or” The counting techniques in this section, which can be thought of as indirect techniques, are based on some correspondences between set theory, logic, and arithmetic as shown on the next slide.
© 2008 Pearson Addison-Wesley. All rights reserved Set Theory/Logic/Arithmetic Correspondences Set TheoryLogicArithmetic Operation or Connective (Symbol) ComplementNotSubtraction Operation or Connective (Symbol) UnionOrAddition
© 2008 Pearson Addison-Wesley. All rights reserved Problems Involving “Not” Suppose U is the set of all possible results of some type. Let A be the set of all those results that satisfy a given condition. The figure below suggests that U A
© 2008 Pearson Addison-Wesley. All rights reserved Complements Principle of Counting The number of ways a certain condition can be satisfied is the total number of possible results minus the number of ways the condition would not be satisfied. Symbolically, if A is any set within the universal set U, then
© 2008 Pearson Addison-Wesley. All rights reserved Example: Counting the Proper Subsets of a Set For the set S = {c, a, l, u, t, o, r}, find the number of proper subsets. A proper subset has less than seven elements. Subsets of many sizes would satisfy this condition. It is easier to consider the one subset that is not proper, namely S itself. S has a total of 2 7 = 128 subsets. From the complements principle, the number of proper subsets is 128 – 1 = 127. Solution
© 2008 Pearson Addison-Wesley. All rights reserved Example: Counting Coin Tossing If five fair coins are tossed, in how many ways can at least one tail be obtained? By the fundamental counting principle, there are 2 5 = 32 different results possible. Exactly one of these fails to satisfy “at least one tail.” So from the complement principle we have the answer: 32 – 1 = 31. Solution
© 2008 Pearson Addison-Wesley. All rights reserved Problems Involving “Or” Another technique to count indirectly is to count the elements of a set by breaking that set into simpler component parts. If the cardinal number formula (Section 2.4) says to find the number of elements in S by adding the number in A to the number in B. We must then subtract the number in the intersection if A and B are not disjoint. If A and B are disjoint, the subtraction is not necessary.
© 2008 Pearson Addison-Wesley. All rights reserved Additive Principle of Counting The number of ways that one or the other of two conditions could be satisfied is the number of ways one of them could be satisfied plus the number of ways the other could be satisfied minus the number of ways they could both be satisfied together. If A and B are any two sets, then If A and B are disjoint, then
© 2008 Pearson Addison-Wesley. All rights reserved Example: Counting Card Hands How many five-card hands consist of all hearts or all black cards? Solution The sets all hearts and all black cards are disjoint. n(all hearts or all black cards) = n(all hearts) + n(all black cards) = 13 C C 5 = 1, ,780 = 67,067
© 2008 Pearson Addison-Wesley. All rights reserved Example: Counting Selections From a Diplomatic Delegation A diplomatic delegation of 20 congressional members are categorized as to political party and gender. If one of the members is chosen randomly to be spokesperson for the group, in how many ways could that person be a Republican or a man? Men (M)Women (W)Totals Republican (R)8412 Democrat (D)358 Totals11920
© 2008 Pearson Addison-Wesley. All rights reserved Example: Counting Selections From a Diplomatic Delegation (M) (W)Totals (R)8412 (D)358 Totals11920 Solution
© 2008 Pearson Addison-Wesley. All rights reserved Example: Counting Three-Digit Numbers with Conditions How many three-digit counting numbers are multiples of 2 or multiples of 5? There are 9(10)(5) = 450 three-digit multiples of 2. A multiple of 5 ends in a 0 or 5, so there are 9(10)(2) = 180 of those. A multiple of 2 and 5 must end in a 0. There are 9(10)(1) = 90 of those. So we have – 90 = 540 three-digit counting numbers that are multiples of 2 or 5. Solution
© 2008 Pearson Addison-Wesley. All rights reserved Example: Counting Card-Drawing Results A single card is drawn from a standard 52-card deck. a) In how many ways could it be a club or a queen? b) In how many ways could it be a red card or a face card? Solution a) club + queen – queen of clubs = – 1 = 16? b) red card + face card – red face cards = – 6 = 32