Presentation is loading. Please wait.

Presentation is loading. Please wait.

combinaTorial Analysis

Similar presentations


Presentation on theme: "combinaTorial Analysis"β€” Presentation transcript:

1 combinaTorial Analysis
Principle of counting Permutations Combinations

2 Principal of counting If some event can occur in 𝑛 1 different ways, then a second event can happen in 𝑛 2 different ways then a third event can happen in 𝑛 3 different ways … Then the total number of possible outcomes of all events is 𝑛 1 * 𝑛 2 * 𝑛 3 * … Example how many license plates can there be with 2 letters followed by 3 digits where the first digit is not a 0? 26 * 26 * 9 * 10 * 10 = 608,400

3 Factorial Notation The product of all positive integers from 1 to n inclusively is denoted as n! n! = 1 * 2 * …* (n-1) * n Example) What is 4! ? 1*2*3*4 = 24 Notice n! = n * (n-1)! So we define 0! = 1 so that 1! = 1*0!

4 Examples of factorials
How many ways can you arrange the three letters ABC? S = {ABC, ACB, BAC, BCA, CAB, CBA} = 6 = 3! How many ways can we choose the first letter? 3 Once that first letter is chosen, how many ways can we choose the second letter? 2 Once the first and second letters are chosen, now many way can we choose the third letter? 1 Total number if choices? 3*2*1 = 6

5 Example) Choose 2 from 5 Given the set of letters ABCDE, how many ways can you choose 2 letters where the order of the letters doesn’t matter? Well, there are 5! = 120 permutations of these letters, but we are only interested in the first 2 letters, so in the 120 permutations, that would include the permutations ABCDE, ABCED, ABDCE, ABDEC, ABECD, ABEDC BACDE, BACED, BADCE, BADEC, BAECD, BAEDC The 2 letters A and B show up as the first 2 letters 12 times, in the 120 permutations.

6 Example) 5 choose 2 ABCDE, ABCED, ABDCE, ABDEC, ABECD, ABEDC BACDE, BACED, BADCE, BADEC, BAECD, BAEDC There are 2! ways to list A and B and there are also there 3! ways to arrange the remaining letters CDE. So, if we were to count the 5! = 120 permutations of ABCDE, we will have to divide them by all the number of sets of duplicates. π‘ƒπ‘’π‘Ÿπ‘š(𝐴,𝐡,𝐢,𝐷,𝐸) (π‘ƒπ‘’π‘Ÿπ‘š 𝐴,𝐡 βˆ—π‘ƒπ‘’π‘Ÿπ‘š(𝐢,𝐷,𝐸)) = 𝑛! π‘Ÿ !βˆ— π‘›βˆ’π‘Ÿ ! Where r is the number of items you are choosing from n

7 Binomial Coefficients
𝑛 π‘Ÿ = 𝑛! π‘Ÿ !βˆ— π‘›βˆ’π‘Ÿ ! = π‘›βˆ— π‘›βˆ’1 βˆ—β€¦βˆ—(π‘›βˆ’π‘Ÿ+1) 1βˆ—2βˆ—β€¦βˆ—π‘Ÿ Example) How many ways can you choose 3 unique letters from the alphabet? 26 3 = 26! 3!βˆ—23! = 26βˆ—25βˆ—24 1βˆ—2βˆ—3 =2600

8 Ordered Partitions Example) Given the letters of the alphabet, how many ways can you house 3 unique letters as your first set, then from the remaining letters pick another 2 unique letters? 26 3 βˆ— 23 2 =657800

9 Ex) Win, Place, Show (Horse racing)
There are 16 horses in a race, each having an equal chance to win. What are your chances to win? Win) Your horse must come in 1st place Place) Your horse must come in 1st or 2nd ? 2 16 Show) Your horse must come in 1st , 2nd or 3rd ? 3 16

10 Ex) Exacta (Horse racing bet)
How many possible outcomes are there for these bets? Exacta) You must pick the 1st AND the 2nd place horse 16βˆ—15=240 Exacta Box) You pick 2 horses and those 2 horses must come in 1st and 2nd in any order 16βˆ—15 1βˆ—2 =120

11 Ex) Trifecta (Horse racing bet)
How many possible outcomes are there for these bets? You must pick the 1st AND 2nd AND 3rd place horse 16βˆ—15βˆ—14=3360 Trifecta Box) You pick 3 horses and those 3 horses must come in 1st , 2nd and 3rd in any order 16βˆ—15βˆ—14 1βˆ—2βˆ—3 =560

12 Ex) Super Bowl Football has 32 teams divided into 2 sets called conferences. The two conferences are disjoint sets of 16 teams. Each conference produces a winner and those 2 winners play each other in the Super Bowl. How many different combinations of teams may play in the super bowl? 16βˆ—16=256 Not 32 2 because they are disjoint sets of 16 teams

13 Ex) Super Bowl continued
Each conference has it’s own championship game prior to the Super Bowl. How many different combinations of teams may play in the two conference championship games? 16βˆ—15 1βˆ—2 βˆ— 16βˆ—15 1βˆ—2 =14,400


Download ppt "combinaTorial Analysis"

Similar presentations


Ads by Google