Simple Arrangements & Selections. Combinations & Permutations A permutation of n distinct objects is an arrangement, or ordering, of the n objects. An.

Slides:



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

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.
Fall 2002CMSC Discrete Structures1 Permutations How many ways are there to pick a set of 3 people from a group of 6? There are 6 choices for the.
Counting Techniques: Combinations
Counting and Probability The outcome of a random process is sure to occur, but impossible to predict. Examples: fair coin tossing, rolling a pair of dice,
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department.
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.
Lecture 5 Counting 4.3, Permutations r-permutation: An ordered arrangement of r elements of a set of n distinct elements. Example: S={1,2,3}:
CSE 321 Discrete Structures Winter 2008 Lecture 16 Counting.
Counting II: Pascal, Binomials, and Other Tricks Great Theoretical Ideas In Computer Science A. Gupta D. Sleator CS Fall 2010 Lecture 8Sept. 16,
Discrete Mathematics Lecture 6 Alexander Bukharovich New York University.
1 More Counting Techniques Possibility trees Multiplication rule Permutations Combinations.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
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}
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
MAT 2720 Discrete Mathematics Section 6.1 Basic Counting Principles
1 Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
Counting. Why counting  Determine the complexity of algorithms To sort n numbers, how many instructions are executed ?  Count the number of objects.
Introduction to Counting Discrete Structures. A Multiplication Principle.
Basic Counting Lecture 12: Oct 28. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations,
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.4,
Basic Counting. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations, combinations.
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
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Chapter 3 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.
© The McGraw-Hill Companies, Inc., Chapter 4 Counting Techniques.
Permutations and Combinations
Unit 7 Permutation and Combination IT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLP 1 Unit 7 Permutation and Combination.
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.
Lecture 5 Counting 4.3, Permutations r-permutation: An ordered arrangement of r elements of a set of n distinct elements. Example: S={1,2,3}:
Sullivan Algebra and Trigonometry: Section 14.2 Objectives of this Section Solve Counting Problems Using the Multiplication Principle Solve Counting Problems.
Spatial Statistics and Spatial Knowledge Discovery First law of geography [Tobler]: Everything is related to everything, but nearby things are more related.
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,
Counting Principles Multiplication rule Permutations Combinations.
Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
MATH 2311 Section 2.1. Counting Techniques Combinatorics is the study of the number of ways a set of objects can be arranged, combined, or chosen; or.
CS Lecture 8 Developing Your Counting Muscles.
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.
Copyright © Peter Cappello 2011 Simple Arrangements & Selections.
COUNTING Permutations and Combinations. 2Barnett/Ziegler/Byleen College Mathematics 12e Learning Objectives for Permutations and Combinations  The student.
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.
Permutations & Combinations: Selected Exercises. Copyright © Peter Cappello2 Preliminaries Denote the # of arrangements of some k elements of a set of.
Copyright © Cengage Learning. All rights reserved. Probability and Statistics.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 5 Counting 歐亞書局.
Fall 2002CMSC Discrete Structures1 Combinations An r-combination of elements of a set is an unordered selection of r elements from the set. Thus,
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.
The Multiplication Rule
The Pigeonhole Principle
MATH 2311 Section 2.1.
CSE15 Discrete Mathematics 04/19/17
COCS DISCRETE STRUCTURES
12.2 Permutations and Combinations
Permutations and Combinations
CS100: Discrete structures
8.3 Counting Apply the fundamental counting principle
Permutations and Combinations
Basic Counting.
Basic Counting Lecture 9: Nov 5, 6.
Permutations and Combinations
MATH 2311 Section 2.1.
Applied Combinatorics, 4th Ed. Alan Tucker
{ a } { a, b } { a, b, c } { a, c } { b } 8 subsets. { b, c } { c }
Presentation transcript:

Simple Arrangements & Selections

Combinations & Permutations A permutation of n distinct objects is an arrangement, or ordering, of the n objects. An r-permutation of n distinct objects is an arrangement using r of the n objects. A r-combination of n objects is an unordered selection, or subset, of r of the n objects.

Notation P(n, r) denotes the number of r-permutations of n distinct objects. C(n, r) denotes the number of r-combinations of n distinct objects. It is spoken “n choose r”. The C(n, r) are known as “binomial coefficients” (for reasons that will become clear later).

Formula for P(n, r) By the product principle, P(n, 2) = n(n - 1); P(n, 3) = n(n - 1)(n - 2); … P(n, n) = n! n choices for the 1st position (n - 1) choices for the 2nd position, …, 1 choice for the n th position. P(n, r) = n(n - 1)... (n - (r - 1)) = n(n - 1)... (n - (r - 1)) (n - r)!/(n - r)! = n!/(n - r)!

Formula for C(n, r) All r-permutations can be counted by the product rule: 1. pick the r elements to be ordered: C(n, r) 2. Order the r elements: P(r, r) = r! That is, P(n, r) = C(n, r)P(r, r) = n!/(n - r)! Thus, C(n, r) = n!/(r!(n - r)!) C(n, r) = C(n, n - r). Give a counting argument for this.

Example How many ways can 7 women & 3 men be arranged in a row, if the 3 men must be adjacent? Treat the men as a block. There are C(8, 1) ways to place the block of men among the women. There are P(3, 3) ways to arrange the men. There are P(7, 7) ways to arrange the women. By the product rule, there are (8)(3!)(7!) ways.

Example How many ways are there to arrange the alphabet so that there are exactly 5 letters between a & b? Pick the position of the left letter of a & b. (This forces the position of the other letter.) Pick the order of a & b: 2. Arrange the other letters: P(24, 24). By the product rule: C(20, 1)(2)P(24, 24).

Example How many 6-digit numbers without repetition are there so that the digits are nonzero, and 1 & 2 do not appear consecutively? It is simpler to do this indirectly: There are P(9, 6) ways to arrange 6 nonzero digits without repetition. Subtract the number of ways to arrange the digits so that 1 & 2 are consecutive:

There are C(5, 1) ways to pick the leftmost position where the 1 or 2 go. There are 2 ways to arrange 1 & 2. There are P(7,4) ways to arrange the other letters. The number of ways to do this is: P(9, 6) - C(5, 1)(2)P(6, 4) ways to do this.

Example How many ways are there to arrange the letters in the word MISSISSIPPI? Since the letters are not distinct, the answer is less than P(11,11) = 11! Pick the 1 position where the M goes: C(11,1) Pick the 4 positions where the Is go: C(10,4) Pick the 4 positions where the Ss go: C(6,4) Pick the 2 positions where the Ps go: C(2,2) There are C(11,1) C(10,4) C(6,4) C(2,2) ways.

Example How many committees of 4 people can be chosen from a set of 7 women and 4 men such that there are at least 2 women?

There are at least 2 women? If we pick 2 women, then pick 2 more people without restriction, we get: C(7, 2)C(9,2). This is wrong; certain committees are counted more than once. See the tree diagram of this use of the product rule.

The Set Composition Rule When using the product rule, the elements of each component must be distinct. In the proposed count, we cannot always tell which women were picked in the 1st phase, & which were picked in the 2nd phase.

To fix this: Use the addition rule The set of committees can be partitioned into: those with 2 women: C(7, 2)C(4, 2) those with 3 women: C(7, 3)C(4, 1) those with 4 women: C(7, 4)C(4, 0) Thus, there are C(7, 2)C(4, 2) + C(7, 3)C(4, 1) + C(7, 4)C(4, 0) such committees.

Example How many ways are there to arrange As & Us such that the 3rd U appears as the 12th letter in a 15 letter sequence? In the 1st 11 letters, U appears exactly 2 times. Using the product rule: Pick the positions of the 1st 2 Us: C(11, 2) Pick the 3 letters that follow the 12th: 2 3.