recap
play

Recap MDM4U: Mathematics of Data Management Example In how many - PDF document

c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s Recap MDM4U: Mathematics of Data Management Example In how many ways can the letters of the word MATH be


  1. c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s Recap MDM4U: Mathematics of Data Management Example In how many ways can the letters of the word MATH be arranged? There are 4 P 4 = 4! = 24 permutations of the four letters. Arranging Identical Items This can be verified by enumerating all of the possibilities: Permutations with Repetition MATH MAHT MTAH MTHA MHAT MHTA AMTH AMHT AHMT AHTM ATHM ATMH J. Garvin TAMH TAHM TMAH TMHA THAM THMA HAMT HATM HMAT HMTA HTAM HTMA J. Garvin — Arranging Identical Items Slide 1/13 Slide 2/13 c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s Recap Permutations with Repetition Example In the case of MATH, all of the letters were distinct. With DATA, however, the letter A occurred twice. In how many ways can the letters of the word DATA be arranged? Although there are still 4! = 24 permutations, some of them are indistinguishable. There are 4 P 4 = 4! = 24 permutations of four items. To see this more clearly, colour one A red and the other blue: This can be verified by enumerating all of the possibilities: DATA DATA DAAT DAAT DTAA DTAA DATA DAAT DTAA TADA TAAD TDAA TADA TADA TAAD TAAD TDAA TDAA AADT AATD ADAT ADTA ATDA ATAD ATAD ATAD AADT AADT AATD AATD ADAT ADAT ATDA ATDA ADTA ADTA Wait, what? So, we are overcounting when using the previous permutation formula. J. Garvin — Arranging Identical Items J. Garvin — Arranging Identical Items Slide 3/13 Slide 4/13 c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s Permutations with Repetition Permutations with Repetition Permutations with Some Identical Items Check Given n items, with a identical items of one type, b identical In how many ways can the letters of the word DATA be items of another, c identical items of another, and so forth, arranged? n ! the number of permutations of all n items is There are 4! 2! = 24 a ! b ! c ! . . . 2 = 12 ways to arrange the four letters. Proof: Colour each of the a identical items of the first type different colours. There are a ! ways of arranging these items, each of which would produce the same result. The same applies to the b identical items of the second type, the c identical items of the third type. In each case, we are overcounting by b !, then by c !. To remedy this, we must divide the total number of permutations, n !, by a !, then b !, then c !, etc. J. Garvin — Arranging Identical Items J. Garvin — Arranging Identical Items Slide 5/13 Slide 6/13

  2. c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s Permutations with Repetition Permutations with Repetition Your Turn Example In how many ways can the letters of the word MISSISSAUGA Recall the earlier example about binary numbers, which use be arranged? only 0 and 1 as allowable digits. How many eight-bit bytes contain exactly three ones? There are eleven letters, including four Ss, two Is and two As. There are three ones, and five zeroes. 11! Therefore, there are 4!2!2! = 415 800 ways to arrange the 8! Therefore, there are 3!5! = 56 bytes with exactly three ones. letters. Which way is easier? J. Garvin — Arranging Identical Items J. Garvin — Arranging Identical Items Slide 7/13 Slide 8/13 c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s Permutations with Repetition Permutations with Repetition Example Your Turn In how many ways can the letters of the word PARALLEL be In how many ways can ten marbles (two yellow, three red and arranged if the two As cannot be beside each other? five blue) be arranged in a line if the two yellow marbles must be on the ends? There are eight letters, including two As and three Ls. These 8! The two yellow marbles are fixed, so there are really only can be arranged in 2!3! = 3 360 ways. eight items to arrange. If the As are together (“AA”), there are seven items to 8! This can be done in 3!5! = 56 ways. arrange, including three Ls. These can be arranged in 7! This is the same as the previous example! 3! = 840 ways. Using an indirect method, the number of ways to arrange the letters such that the two As are not together is 2!3! − 7! 8! 3! = 2 520. J. Garvin — Arranging Identical Items J. Garvin — Arranging Identical Items Slide 9/13 Slide 10/13 c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s Permutations with Repetition Permutations with Repetition Example A shortest path would move directly from A toward B, by moving either East or South. How many shortest paths are there from Point A to Point B? An example is shown in red. Let E denote a movement to the East, and S a movement to the South. Some possible paths, then, include: • EEEEESSSS • ESESESESE • SSESEESEE A path, then, is simply an arrangement of five Es and four Ss. 9! Therefore, there are 5!4! = 126 shortest paths. J. Garvin — Arranging Identical Items J. Garvin — Arranging Identical Items Slide 11/13 Slide 12/13

  3. c o u n t i n g p r i n c i p l e s a n d p e r m u t a t i o n s Questions? J. Garvin — Arranging Identical Items Slide 13/13

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend