Permutations and Combinations

Slides:



Advertisements
Similar presentations
Basic Permutations and Combinations
Advertisements

1 Section 4.3 Permutations & Combinations. 2 Permutation Set of distinct objects in an ordered arrangement An ordered arrangement of r members of a 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 BASIC OF COUNTING Discrete mathematics KNURE, Software department, Ph , N.V. Bilous.
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}:
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
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.
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Permutations and Combinations
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Aim: What are the permutation and combination? Do Now: 2. If four students are scheduled to give a report in class, in how many ways can the students.
1 Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
The Basics of Counting Section 6.1.
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
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
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
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.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
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}:
1 Binomial Coefficients CS 202 Epp, section ??? Aaron Bloomfield.
Simple Arrangements & Selections. Combinations & Permutations A permutation of n distinct objects is an arrangement, or ordering, of the n objects. An.
1 Lecture 4 (part 2) Combinatorics Reading: Epp Chp 6.
4.1.2 Pigeonhole principle:Strong Form  Theorem 4.2: Let q 1,q 2,…,q n be positive integers. If q 1 +q 2 +…+q n -n+1 objects are put into n boxes, then.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 4 Counting methods and the pigeonhole principle.
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.
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.
Section 6.4. Powers of Binomial Expressions Definition: A binomial expression is the sum of two terms, such as x + y. (More generally, these terms can.
Binomial Coefficients and Identities
5.4 Binomial Coefficients Theorem 1: The binomial theorem Let x and y be variables, and let n be a nonnegative integer. Then Example 3: What is the coefficient.
CS 104: 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.
1 DISCRETE STRUCTURES DISCRETE STRUCTURES SSK3003 DR. ALI MAMAT 1.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
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 Pigeonhole Principle
Permutations and Combinations
CSE15 Discrete Mathematics 04/19/17
ICS 253: Discrete Structures I
Chapter 5, Section 5.1 The Basics of Counting
Counting Methods and Probability Theory
COCS DISCRETE STRUCTURES
Using Combinations You have already learned that order is important for some counting problems. For other counting problems, order is not important. For.
12.2 Combinations and Binomial Theorem
Permutations and Combinations
Permutations and Combinations
Permutations and Combinations
The Binomial Theorem Objectives: Evaluate a Binomial Coefficient
CS100: Discrete structures
Permutations and Combinations
Combinatorics.
Counting techniques Basic Counting Principles, Pigeonhole Principle, Permutations and Combinations.
Permutations and Combinations
Sequences and the Binomial Theorem
Binomial Theorem; Pascal’s Triangle
The Binomial Theorem OBJECTIVES: Evaluate a Binomial Coefficient
Counting Methods and Probability Theory
Applied Combinatorics, 4th Ed. Alan Tucker
Presentation transcript:

Permutations and Combinations

Permutations A permutation of a set of distinct objects is an ordered arrangement these objects. An ordered arrangement of r elements of a set is called an r-permutation. The number of r-permutations of a set with n elements is denoted by P(n,r). A = {1,2,3,4} 2-permutations of A include 1,2; 2,1; 1,3; 2,3; etc…

Counting Permutations Using the product rule we can find P(n,r) = n*(n-1)*(n-2)* …*(n-r+1) = n!/(n-r)! How many 2-permutations are there for the set {1,2,3,4}? P(4,2)

Combinations An r-combination of elements of a set is an unordered selection of r element from the set. (i.e., an r-combination is simply a subset of the set with r elements). Let A={1,2,3,4} 3-combinations of A are {1,2,3}, {1,2,4}, {1,3,4}, {2,3,4}(same as {3,2,4}) The number of r-combinations of a set with n distinct elements is denoted by C(n,r).

Example Let A = {1,2,3} 2-permutations of A are: 1,2 2,1 1,3 3,1 2,3 3,2 6 total. Order is important 2-combinations of A are: {1,2}, {1,3}, {2,3} 3 total. Order is not important If we counted the number of permutations of each 2- combination we could figure out P(3,2)!

How to compute C(n,r) To find P(n,r), we could first find C(n,r), then order each subset of r elements to count the number of different orderings. P(n,r) = C(n,r)P(r,r). So C(n,r) = P(n,r) / P(r,r)

A club has 25 members. How many ways are there to choose four members of the club to serve on an executive committee? Order not important C(25,4) = 25!/21!4! = 25*24*23*22/4*3*2*1 =25*23*22 = 12,650 How many ways are there to choose a president, vice president, secretary, and treasurer of the club? Order is important P(25,4) = 25!/21! = 303,600

exactly one vowel? exactly 2 vowels at least 1 vowel at least 2 vowels The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: exactly one vowel? exactly 2 vowels at least 1 vowel at least 2 vowels

The English alphabet contains 21 consonants and 5 vowels The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: exactly one vowel? Note that strings can have repeated letters! We need to choose the position for the vowel C(6,1) = 6!/1!5! This can be done 6 ways. Choose which vowel to use. This can be done in 5 ways. Each of the other 5 positions can contain any of the 21 consonants (not distinct). There are 215 ways to fill the rest of the string. 6*5*215

The English alphabet contains 21 consonants and 5 vowels The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: exactly 2 vowels? Choose position for the vowels. C(6,2) = 6!/2!4! = 15 Choose the two vowels. 5 choices for each of 2 positions = 52 Each of the other 4 positions can contain any of 21 consonants. 214 15*52*214

The English alphabet contains 21 consonants and 5 vowels The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: at least 1 vowel Count the number of strings with no vowels and subtract this from the total number of strings. 266 - 216

The English alphabet contains 21 consonants and 5 vowels The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: at least 2 vowels Compute total number of strings and subtract number of strings with no vowels and the number of strings with exactly 1 vowel. 266 - 216 - 6*5*215

Corollary 1: Let n and r be nonnegative integers with r  n Corollary 1: Let n and r be nonnegative integers with r  n. Then C(n,r) = C(n,n-r) Proof: C(n,r) = n!/r!(n-r)! C(n,n-r) = n!/(n-r)!(n-(n-r))! = n!/r!(n-r)!

Binomial Coefficient Another notation for C(n,r) is . This number is also called a binomial coefficient. These numbers occur as coefficients in the expansions of powers of binomial expressions such as (a+b)n.

Pascal’s Identity Let n and k be positive integers with n  k. Then C(n+1,k) = C(n, k-1) + C(n,k). Proof:

Let n be a positive integer. Then Proof: We know from set theory that the number of subsets in a set of size n is 2n. We also know that C(n,k) is the number of subsets of a set of size n that are of size k. counts the number of subsets of every size from 0 (empty set) to n. Therefore the sum must add up to 2n.

Vandermonde’s Identity Proof: Suppose there are n items in one set and m items in a second set. Then the total number of ways to pick r elements from the union of these sets is C(m+n,r). Another way to pick r elements from the union is to pick k elements from the first set and then r-k elements from the second set, where 0  k  r. There are C(n,k) ways to pick the k elements from the first set and C(m,r-k) ways to pick the rest of the elements from the second set.

Proof: Suppose there are n items in one set and m items in a second set. Then the total number of ways to pick r elements from the union of these sets is C(m+n,r). Another way to pick r elements from the union is to pick k elements from the first set and then r-k elements from the second set, where 0  k  r. For any k,there are C(n,k) ways to pick the k elements from the first set and C(m,r-k) ways to pick the rest of the elements from the second set. By the product rule there are C(m,r-k)C(n,k) ways to pick r elements for a particular k. For all possible values of k

Pascal’s Triangle 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 n’th row, Cnk = k = 0, 1, …, n

Binomial Theorem Let x and y be variables and let n be a positive integer. Then