1 Section 5.3 Permutations and Combinations Permutations (order counts) A permutation of a set is an arrangement of the objects from a set. There are n!

Slides:



Advertisements
Similar presentations
MATHCOUNTS TOOLBOX Facts, Formulas and Tricks
Advertisements

MATHCOUNTS TOOLBOX Facts, Formulas and Tricks
Counting Chapter 6 With Question/Answer Animations.
Consider the possible arrangements of the letters a, b, and c. List the outcomes in the sample space. If the order is important, then each arrangement.
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
Quit Permutations Combinations Pascal’s triangle Binomial Theorem.
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
ENM 207 Lecture 5. FACTORIAL NOTATION The product of positive integers from 1 to n is denoted by the special symbol n! and read “n factorial”. n!=1.2.3….(n-2).(n-1).n.
Combinations We should use permutation where order matters
Slides prepared by Rose Williams, Binghamton University Chapter 11 Recursion.
Chapter 7 - Part Two Counting Techniques Wednesday, March 18, 2009.
More Counting Lecture 16: Nov 9 A B …… f. Counting Rule: Bijection If f is a bijection from A to B, then |A| = |B| A B …… f.
1 More Counting Techniques Possibility trees Multiplication rule Permutations Combinations.
Chapter 11 Counting Methods © 2008 Pearson Addison-Wesley. All rights reserved.
Warm Up Evaluate  4  3  2   6  5  4  3  2  Permutations and Combinations.
COMBINATORICS Permutations and Combinations. Permutations The study of permutations involved order and arrangements A permutation of a set of n objects.
Lecture 08 Prof. Dr. M. Junaid Mughal
More Counting Lecture 16: Nov 9 A B …… f. This Lecture We will study how to define mappings to count. There will be many examples shown. Bijection rule.
Math 2 Honors - Santowski
P ERMUTATIONS AND C OMBINATIONS Homework: Permutation and Combinations WS.
MAT 2720 Discrete Mathematics Section 6.1 Basic Counting Principles
Jessie Zhao Course page: 1.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Generalized Permutations and Combinations
Number of Elements in a Finite Set. Notation : The number of the elements of the set A will be denoted by n(A) Examples (1): Let: Let: A = {a,b,c,d} B.
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Permutations and Combinations
10.3 – Using Permutations and Combinations Permutation: The number of ways in which a subset of objects can be selected from a given set of objects, where.
Methods of Counting Outcomes BUSA 2100, Section 4.1.
Section 10-3 Using Permutations and Combinations.
Chapter 10 – Data Analysis and Probability
© The McGraw-Hill Companies, Inc., Chapter 4 Counting Techniques.
Part 2 – Factorial and other Counting Rules
The local Family Restaurant has a daily breakfast special in which the customer may choose one item from each of the following groups: Breakfast Sandwich.
6.3Find Probabilities Using Combinations
Chapter PERMUTATIONS AND COMBINATIONS. Objectives Solve problems involving the Fundamental Counting Principle. Solve problems involving permutations.
Counting CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Permutations and Combinations
1 CS 140 Discrete Mathematics Combinatorics And Review Notes.
Counting Techniques Tree Diagram Multiplication Rule Permutations Combinations.
37. Permutations and Combinations. Fundamental Counting Principle Fundamental Counting Principle states that if an event has m possible outcomes and another.
P(B) = Triangle Area P(A) = Oval Area P(A or B) = r + w + g P(A and B) = w So, P(A) + P(B) = r + w + g + w The Addition Rule for 2 events A and B P(A or.
CS Lecture 8 Developing Your Counting Muscles.
Special Topics. Calculating Outcomes for Equally Likely Events If a random phenomenon has equally likely outcomes, then the probability of event A is:
BUSINESS MATHEMATICS & STATISTICS. Module 7 Factorials Permutations and Combinations ( Lecture 34) Elementary Probability ( Lectures 35-36) Chi-Square.
Section 6.3. Section Summary Permutations Combinations.
The Multiplication Rule
Chapter 10 Counting Methods.
Developing Your Counting Muscles
CSC-2259 Discrete Structures
More Simple Recursive Problems
Counting Principals, Permutations, and Combinations
Section 8.3 PROBABILITY.
Counting, Permutations, & Combinations
Chapter 0.4 Counting Techniques.
Combinatorics.
COUNTING AND PROBABILITY
Warm Up Permutations and Combinations Evaluate  4  3  2  1
Combinatorics.
Combinatorics: Combinations
COUNTING AND PROBABILITY
More Counting A B … f Lecture 16: Nov 9.
10.4 Permutations and Combinations
Combinatorics.
Chapter 10 Counting Methods.
Using Permutations and Combinations
Standard DA-5.2 Objective: Apply permutations and combinations to find the number of possibilities of an outcome.
10.5 Permutations and Combinations.
10.3 – Using Permutations and Combinations
Presentation transcript:

1 Section 5.3 Permutations and Combinations Permutations (order counts) A permutation of a set is an arrangement of the objects from a set. There are n! permutations of an n-element set, where 0! = 1 and n! = n · (n – 1)! The number of permuations of length r chosen from an n-element set (where r ≤ n) is Example/Quiz. Let S = {a, b, c}. Calculate each expresssion and list the corresponding permutations of S: P(3, 3), P(3, 2), and P(3, 1). Solution. P(3, 3) = 3!/0!= 6 with permutations abc, acb, bac, bca, cab, cba. P(3, 2) = 3!/1! = 6 with permutations ab, ac, ba, bc,ca, cb. P(3, 1) = 3!/2!= 3 with permutations a, b, and c. Quiz. Find the number of permutations of the letters in the word radon. Answer. 5! = 120. Bag Permutations The number of permutations of an n-element bag with k distinct elements, where the ith distinct element is repeated m i times is

2 The idea behind the formula The idea is easy to see from an example. Suppose the bag is [a, a, b, b, b]. Then we can think of the letters as distinct elements of a set by placing subscripts on the repeated elements to obtain the set {a 1, a 2, b 1, b 2, b 3 }. There are 5! permutations of this set. But we don’t want to count permutations that are repeated if we drop the subscripts. For example, don’t want to count a 1 a 2 b 1 b 2 b 3 and a 2 a 1 b 1 b 2 b 3 as different. So we need to divide 5! by the number of permutations of each subscripted element: 2! for {a 1, a 2 } and 3! for {b 1, b 2, b 3 }. This gives 5!/(2!3!) = 10 permutations of the bag [a, a, b, b, b]. Example. Calculate the number of permutations of [a, a, b, b] and list each permutation. Answer. 4!/(2!2!) = 6 with permutations aabb, abab, abba, bbaa, baba, baab. Quiz. Find the number of permutations of the letters in the word babbage. Answer. 7!/(2!3!) = 420. Quiz (5 minutes). Find the smallest size n for strings of length n over {a, b, c} that can be used as distinct codes for 27 people, where a is repeated k times, b is repeated l times, c is repeated m times, and k + l + m = n. Answer. Use trial and error to solve the following inequality for the smallest n that satisfies the given conditions. The solution is n = 5 with, for example, k = 2, l = 2, and m = 1.

3 Combinations (order does not count) The number of combinations of n things taken k at a time is the number of k-element subsets of an n-element set, and is given by The idea: Take the number of permutations of n things taken k at a time. This count includes all the permutations of k elements. So divide by k! to get the count without regard to order. Example/Quiz. Let S = {a, b, c}. Calculate each expression and list the corresponding subsets of S. C(3, 3), C(3, 2), C(3, 1), C(3, 0). Solution. C(3, 3) = 1 with the subset {a, b, c}. C(3, 2) = 3 with subsets {a, b}, {a, c}, {b, c}. C(3, 1) = 3 with subsets {a}, {b}, {c}. C(3, 0) = 1 with subset . Quiz. Suppose there is a set of 5 cans of soda {a, b, c, d, e}. Find the number of combinations of 5 cans of soda taken 3 at a time and list each combination. Answer. The 3-element subsets are {a, b, c}, {a, b, d}, {a, b, e}, {a, c, d}, {a, c, e}, {a, d, e}, {b, c, d}, {b, c, e}, {b, d, e}, {c, d, e}. Binomial Theorem.Note:is called a binomial coefficient. Example.

4 Bag Combinations The number of k-element bags over an n-element set (with k and n positive) is given by Solution. The idea behind the formula There is a bijection between the k-element bags over {1, 2, …, n} and the k-element subsets of {1, 2, …, n, n + 1, …, n + (k – 1)}. The bijection associates each k-element bag [x 1, x 2, …, x k ] where x i ≤ x i+1, with the k-element subset {x 1, x 2 +1, x 3 + 2, …, x k + (k – 1)}}, and the number of these k-element subsets is given by desired formula. Example/Quiz. Let S = {a, b, c}. Calculate the number of 3-element bags over S and list each bag. The 3-element bags are [a, b, c], [a, b, b], [a, c, c], [a, a, b], [a, a, c], [a, a, a], [b, c, c], [b, b, c], [b, b, b], [c, c, c]. Quiz. Find the number of ways that 5 cans of soda can be chosen from a machine that dispenses 4 kinds of soda {a, b, c, d}. Solution.For example, [a, a, b, b, d], and so on.