Permutations and Combinations

Slides:



Advertisements
Similar presentations
9.5 Counting Subsets of a Set: Combinations
Advertisements

4.5 Generalized Permutations and Combinations
Counting. Counting = Determining the number of elements of a finite set.
Permutations and Combinations Rosen 4.3. Permutations A permutation of a set of distinct objects is an ordered arrangement these objects. An ordered arrangement.
Counting Chapter 6 With Question/Answer Animations.
The Division Rule Theorem: Suppose a set A has n elements and is partitioned by the collection {A 1, A 2,..., A p }, where each partition set has m elements.
Counting Tools ● Enumeration ● Multiplication ● Addition ● Negation.
CSE115/ENGR160 Discrete Mathematics 04/17/12
Permutations r-permutation (AKA “ordered r-selection”) An ordered arrangement of r elements of a set of n distinct elements. permutation of a set of n.
CSE 321 Discrete Structures Winter 2008 Lecture 16 Counting.
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 5.4 Distributions Prepared by Jo Ellis-Monaghan.
Combinations We should use permutation where order matters
Counting Techniques: r-combinations with
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Tucker, Section 5.41 Section 5.4 Distributions By Colleen Raimondi.
Chapter 11 Counting Methods © 2008 Pearson Addison-Wesley. All rights reserved.
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Permutations and Combinations
CS100 : Discrete Structures
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Combinatorics.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Review of 5.1, 5.3 and new Section 5.5: Generalized Permutations and Combinations.
Counting. Why counting  Determine the complexity of algorithms To sort n numbers, how many instructions are executed ?  Count the number of objects.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Generalized Permutations and Combinations
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Permutations and Combinations
Chapter 3 Permutations and combinations
Section 10-3 Using Permutations and Combinations.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Simple Arrangements & Selections. Combinations & Permutations A permutation of n distinct objects is an arrangement, or ordering, of the n objects. An.
CSNB143 – Discrete Structure Topic 6 – Counting Techniques.
Ch Counting Principles. Example 1  Eight pieces of paper are numbered from 1-8 and placed in a box. One piece of paper is drawn from the box, its.
The Pigeonhole Principle. The pigeonhole principle Suppose a flock of pigeons fly into a set of pigeonholes to roost If there are more pigeons than pigeonholes,
Discrete Mathematics Lecture # 25 Permutation & Combination.
Counting.
5.5 Generalized Permutations and Combinations
Copyright © Peter Cappello 2011 Simple Arrangements & Selections.
Section The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must have more than 1 pigeon.
1 DISCRETE STRUCTURES DISCRETE STRUCTURES SSK3003 DR. ALI MAMAT 1.
Operations on Sets Union of Sets Intersection of Sets
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 5 Counting 歐亞書局.
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Section 6.3. Section Summary Permutations Combinations.
Example A standard deck of 52 cards has 13 kinds of cards, with four cards of each of kind, one in each of the four suits, hearts, diamonds, spades, and.
Discrete Mathematics Counting.
The Multiplication Rule
Chapter 10 Counting Methods.
Permutations and Combinations
CSE15 Discrete Mathematics 04/19/17
Counting Methods and Probability Theory
Generalized Permutations and Combinations
COCS DISCRETE STRUCTURES
Permutations and Combinations
Permutations and Combinations
Permutations and Combinations
CS100: Discrete structures
Mathematics for Computer Science MIT 6.042J/18.062J
Math/CSE 1019: Discrete Mathematics for Computer Science Fall 2011
Permutations and Combinations
Section 12.8 The Counting Principle and Permutations
CSE 321 Discrete Structures
Counting techniques Basic Counting Principles, Pigeonhole Principle, Permutations and Combinations.
Counting Methods and Probability Theory
Probability Notes Math 309.
9.6 Counting Theory Example If there are 3 roads from Albany to Baker
Chapter 11: Further Topics in Algebra
CMPS 2433 Chapter 8 Counting Techniques
The Division Rule Theorem: Suppose a set A has n elements and is partitioned by the collection {A1, A2, ..., Ap}, where each partition set has m elements.
Presentation transcript:

Permutations and Combinations Exercises 5.3: 4, 6, 12, 16, 30, 40 Exercises 5.5: 4, 10

Permutation A permutation is an ordering of objects For example, 3 blocks can be ordered 6 ways There are n! permutations of n elements Easily proved using the Product rule

r-Permutation r-permutations are used to order subsets of distinct elements P(n,r) represents the r-permutations of a set of n distinct elements P(n,r) = n(n-1)(n-2) … (n-r+1) for r  n P(n,r) = n! / (n-r)! Example There are 8 different candy to choose from. How many different “meals” can you make by choosing 3 of them? P(n,r) = P(8,3) = 8*7*6

r-Combination What if it does not matter which order you eat the candy?... A combination is an unordered arrangement of elements in a set Example: a 3-combination from a set of 12 colored blocks

r-Combination An r-combination is a selection of r unordered elements from a set (or simply a subset with r elements) C(n,r) denotes the number of r-combinations of a set of n elements C(n,r)= P(n,r)/r! = n!/[(n-r)!r!] = C(n,n-r)

Combinations with Repetition Example How many ways are there to select any 4 pieces of fruit from a bowl containing at least 4 apples, 4 bananas and 4 pears assuming selection order does not matter? Solution List the 15 possibilities

Combinations with Repetition Theorem: There are C( n + r - 1, r) r-combinations from a set with n unique elements when repetition of elements is allowed. Previous Example: n = 3 different fruits r = 4 items to select C( 3+4-1, 4) = C(6,4) = 6!/[(6-4)!4!] = 15

Combinations with Repetition Example How many ways are there to select 3 bills from a cash box containing $1, $5, $10, $20 and $50 bills? Solution $1 $5 $10 $20 $50 n = 5 r = 3 C( 3+5-1, 3) C( 7, 3) * * * * * * ** * *** 1 2 3 4

Combination with Repetition Example How many ways can 6 balls be distributed into 9 different bins? Solution n = 9 unique bins r = 6 balls C( 9+6-1, r ) = C(14, 6)

Permutations with Repetition Counting permutations with repetition relies on the multiplication rule Example: How many strings of length r can be formed from the English alphabet? Theorem: The number of r-permutations of a set of n objects with repetition is nr abc abc abc … abc = 26*26*26 … 26 = 26r r r

Example: Which formula to use??? How many different strings can be made by reordering the letters of the string SUCCESS? Solution: 3 S’s, 2 C’s, 1 E and 1 U C(7,3) to place to S’s C(4,2) to place the C’s C(2,1) to place the E C(1,1) to place the U C(7,3)C(4,2)C(2,1)C(1,1) = 7! * 4! * 2! * 1! 3!4! 2!2! 1!1! 0!0!

r-Permutations with Repetition Theorem The number of different permutations of n objects, where there are n1 identical objects of type 1, n2 identical objects of type 2 … and nt identical objects of type t, is n! n1! n2! …nt!

Permutations & Combinations For r elements selected from n distinct elements: r-permutations P(n,r) r-combinations C(n,r) n! (n-r)! n! (n-r)!r! r-permutations with repetition nr For n elements with n1, n2 … nt identical objects For n unique elements in X with r selections from X permutations with repetition of identical objects n! n1!n2! …nt! combinations with repetition C(n+r-1,r)