Download presentation

Presentation is loading. Please wait.

Published byCayden Reynold Modified over 2 years ago

1
9.5 Counting Subsets of a Set: Combinations 1

2
r-Combination An r-combination from a set of n-elements is an r-subset of an n-set. Any of the symbols C(n, r ), n C r, C n, r, is used to count the number of r-subsets from an n-set 2

3
r-Combinations Consider the set A={a, b, c, d}. Calculate the number of r-combinations below by showing the subsets counted in each case 3

4
Counting r-Combinations Take A={a, b, c, d} Consider the 3-combination {a, b, c}. Notice that {a, b, c}={a,c, b}={b, c, a} etc. How many 3-permutation are there with the elements from the r-combination {a, b, c}? 4

5
Formula for C(n, r) The number of r-combinations of an n-set is given by 5

6
Examples 1. How many distinct five-person teams can be chosen to work on a special project from a group of 12 people? 6 Solution: The number of distinct five-person teams is the same as the number of subsets of size 5 (or 5-combinations) that can be chosen from the set of twelve. This number is. Thus there are 792 distinct five-person teams.

7
Examples 2. Suppose the group of twelve consists of five men and seven women. a.How many five-person teams can be chosen that consist of three men and two women? b. How many five-person teams contain at least one man? (two ways) c. How many five-person teams contain at most one man? 7

8
Solution a. To answer this question, think of forming a team as a two-step process: Step 1: Choose the men. Step 2: Choose the women. 8 There are ways to choose the three men out of the five and ways to choose the two women out of the seven. Hence, by the product rule,

9
b. How many five-person teams contain at least one man? (two ways) This question can be answered either by the addition rule or by the difference rule. (Difference Rule) Observe that the set of five- person teams containing at least one man equals the set difference between the set of all five-person teams and the set of five- person teams that do not contain any men. 9

10
10

11
11 (addition rule) observe that the set of teams containing at least one man can be partitioned as shown Teams with At Least One Man

12
12 The number of teams in each subset of the partition is calculated using the method illustrated in part (a). There are

13
13 Hence, by the addition rule,

14
14 c. The set of teams containing at most one man can be partitioned into the set that does not contain any men and the set that contains exactly one man. Hence, by the addition rule,

15
Number of Bit String with Fixed Number of 1s How many 10-bit strings are there with exactly 3 ones? 15 ___ ____ ____ _____ ………….._____ _____ Label the entries of the bit string from To place 3 ones simply choose three of the entries to place them. For instance {1,7,10} indicates that 1s will be placed on those entries; {5, 2, 9} indicates that 1s will be placed on entries 5, 2, 9. The other entries are zeroes. There are a total of 10-bit strings with 3 ones

16
Permutations of a Set With Repeated Elements Consider different ordering of the letters in the word MISSISSIPPI How many distinguishable orderings are there? IIMSSPISSIP, ISSSPMIIPIS, PIMISSSSIIP, and so on Approach 1: Strings with all entries different. Account for repetitions (labels) Approach 2: Strings and select entries to put each of the different letters in the word 16

17
APPROACH 1 Consider all the entries different and then take care of repetitions 17 There are a total of 11 characters, so 11! different words that can be made For each word any reordering of the Is, Ss, Ps will produce the same word (disregarding the sub-index). There are 4!4! 2! repeated words. Total of different words with the letters in MISSISSIPPI is

18
APPROACH 2 Consider a 11-word where the entries are the letters in MISSISSIPPI 18 Choose the number of ways to place 1 M ___ ____ ____ _____ ………….._____ _____ _____ Then choose the number of ways to place 4 Is Then choose the number of ways to place 4 Ss Then choose the number of ways to place 2 Ps

19
By the multiplication principle the total number of different words with the letters in MISSISSIPPI is 19 These is the number of permutations of 11 objects with repetitions

20
Formula 20 Permutation with repetitions of n characters of k different types

21
Exercise 1.How many passwords of length 8 can be made with the letters A, B, C, D, E, F? 2.How many of those passwords have three Bs, two Es, and three Fs? 3.How many of those passwords are permutations of the letters A, B, C, D, E, F? 21

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google