5.3 Permutations and Combinations

Slides:



Advertisements
Similar presentations
Discrete Probability Rosen 5.1.
Advertisements

Counting. Counting in Algorithms How many comparisons are needed to sort n numbers? How many steps to compute the GCD of two numbers ? How many steps.
Basic Permutations and Combinations
Counting Chapter 6 With Question/Answer Animations.
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.
Permutations and Combinations
Math 221 Integrated Learning System Week 2, Lecture 1
CSE115/ENGR160 Discrete Mathematics 04/17/12
Basics of Probability. Trial or Experiment Experiment - a process that results in a particular outcome or “event”. Simple event (or sample point), E i.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Combinatorics Chapter 3 Section 3.3 Permutations Finite Mathematics – Stall.
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Permutations and Combinations
Section 4.3: Permutations and Combinations Def: A permutation of a set of distinct objects is an ordered arrangement of these objects. Ex: {a, b, c, d}
How many ways are there to pass through city A where the arrows represent one-way streets? Answer: mn ways The counting principal: Suppose two experiments.
4. Counting 4.1 The Basic of Counting Basic Counting Principles Example 1 suppose that either a member of the faculty or a student in the department is.
Counting Chapter 6 With Question/Answer Animations.
1 Permutations and Combinations CS/APMA 202 Rosen section 4.3 Aaron Bloomfield.
P ERMUTATIONS AND C OMBINATIONS Homework: Permutation and Combinations WS.
Elements of Combinatorics 1. Permutations (Weak Definition) A permutation is usually understood to be a sequence containing each element from a finite.
The Basics of Counting Section 6.1.
Counting. Product Rule Example Sum Rule Pigeonhole principle If there are more pigeons than pigeonholes, then there must be at least one pigeonhole.
Counting. Techniques for counting Rule 1 Suppose we carry out have a sets A 1, A 2, A 3, … and that any pair are mutually exclusive (i.e. A 1  A 2 =
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.4,
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Chapter 7 With Question/Answer Animations. Section 7.1.
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Permutations and Combinations
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Section 10-3 Using Permutations and Combinations.
March 10, 2015Applied Discrete Mathematics Week 6: Counting 1 Permutations and Combinations How many different sets of 3 people can we pick from a group.
2 Permutations and Combinations Lesson 8 HAND OUT REFERENCE SHEET AND GO OVER IT.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Pg. 606 Homework Pg. 631#1 – 3, 5 – 10, 13 – 19 odd #1135#12126 #1370#14220 #151365# #1756x 5 y 3 #1856x 3 y 5 #19240x 4 # x 6 #34expand to.
1 Binomial Coefficients CS 202 Epp, section ??? Aaron Bloomfield.
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,
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.6,
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Discrete Structures Combinations. Order Doesn’t Matter In the previous section, we looked at two cases where order matters: Multiplication Principle –
Counting.
Combinations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Combinations Reading: Kolman, Section 3.2.
8.6 Counting Principles. Listing Possibilities: Ex 1 Eight pieces of paper are numbered from 1 to 8 and placed in a box. One piece of paper is drawn from.
Discrete Math Section 15.3 Solve problems using permutations and combinations Read page Combinations and permutations.
CS Lecture 8 Developing Your Counting Muscles.
5.5 Generalized Permutations and Combinations
2/24/20161 One, two, three, we’re… Counting. 2/24/20162 Basic Counting Principles Counting problems are of the following kind: “How many different 8-letter.
L14: Permutations, Combinations and Some Review EECS 203: Discrete Mathematics.
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.
Chapter 6 With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Week 9 - Friday.  What did we talk about last time?  Permutations  Counting elements in sets  Brief introduction to combinations.
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.
L14: Permutations, Combinations and Some Review
ICS 253: Discrete Structures I
The Pigeonhole Principle
Permutations and Combinations
CSE15 Discrete Mathematics 04/19/17
ICS 253: Discrete Structures I
Today’s topics Counting Reading: Sections , 4.4 Upcoming
Permutations and Combinations
Permutations and Combinations
Permutations and Combinations
Counting Chapter 6 With Question/Answer Animations
Permutations and Combinations
Basic Counting Lecture 9: Nov 5, 6.
Permutations and Combinations
Sequences and the Binomial Theorem
Presentation transcript:

5.3 Permutations and Combinations Urn models We are given set of n objects in an urn (don’t ask why it’s called an “urn” - probably due to some statistician years ago) . We are going to pick (select) r objects from the urn in sequence. After we choose an object -- we can replace it-(selection with replacement) -- or not -(selection without replacement). If we choose r objects, how many different possible sequences of r objects are there? Does the order of the objects matter or not?

P(n,r) = n(n - 1)(n - 2) . . . (n - r + 1) Permutations Selection without replacement of r objects from the urn with n objects. A permutation is an arrangement. Order matters . The number of permutations of n things taken r at a time P(n,r) = n(n - 1)(n - 2) . . . (n - r + 1) Note: P(n, r) = n! /(n - r)! Example: Let A and B be finite sets and let | A |£| B | . Count the number of injections from A to B.

P(n , r) = n(n-1)(n-2) ‥ (n-r+1) Permutations Theorem 1: If n is a positive integer and r is an integer with 1  r  n, then there are P(n , r) = n(n-1)(n-2) ‥ (n-r+1) r- permutations of a set with n distinct elements. Corollary 1: If n and r are integers with 0  r  n , then P(n, r)= n! / (n-r)!

Permutations A permutation of a set of distinct objects is an ordered arrangement of these objects. We also are interested in ordered arrangements of some of the elements of a set. An ordered arrangement of r elements of a set is called an r-permutation. Example 2: let S={1, 2, 3}. The ordered arrangement 3, 1, 2 is a permutation of S. The ordered arrangement 3, 2 is a 2-permutation of S. Example 4: How many ways are there to select a first-prize winner, a second-prize winner, and a third-prize winner from 100 different people who have entered a contest? HW: example 7,(p.357)

Combinations Selection is without replacement but order does not matter It is equivalent to selecting subsets of size r from a set of size n. Divide out the number of arrangements or permutations of r objects from the set of permutations of n objects taken r at a time: The number of combinations of n things taken r at a time Other names for C(n, r): n choose r The binomial coefficient

Combinations Theorem 2: The number of r-combinations of a set with n elements, where n is a nonnegative integer and r is an integer with 0  r  n, equals C(n, r) = n! / r! (n-r)! Corollary 2: Let n and r be nonnegative integers with r  n. Then C(n, r) = C(n, n-r).

Combinations Example: How many subsets of size r can be constructed from a set of n objects? Corollary: r=0n C(n, r)=2n Proof: If we count the number of subsets of a set of size n, we get the cardinality of the power set.

Combinations Example 11: How many poker hands of five cards can be dealt from a standard deck of 52 card? Also, how many ways are there to select 47 cards from a standard deck of 52 cards? Example 13: A group of 30 people have been trained as astronauts to go on the first mission to Mars. How many ways are there to select a crew of six people to go on this mission ( assuming that all crew members have the same job)? Example 14: How many bit strings of length n contain exactly r 1s? HW: Example 15, p(360)