Counting Techniques: Combinations

Slides:



Advertisements
Similar presentations
Beginning Probability
Advertisements

Main Menu Main Menu (Click on the topics below) Combinations Example Theorem Click on the picture.
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
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.
CSE115/ENGR160 Discrete Mathematics 04/17/12
Discrete Mathematics Lecture 7 More Probability and Counting Harper Langston New York University.
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 5.4 Distributions Prepared by Jo Ellis-Monaghan.
Chapter 4: Probability (Cont.) In this handout: Total probability rule Bayes’ rule Random sampling from finite population Rule of combinations.
Discrete Mathematics Lecture 5
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.
Tucker, Section 5.41 Section 5.4 Distributions By Colleen Raimondi.
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Permutations and Combinations
College Algebra Fifth Edition
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 and Probability Sets and Counting Permutations & Combinations Probability.
Chapter 8 Counting Principles: Further Probability Topics Section 8.2 Combinations.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
1 Permutations and Combinations CS/APMA 202 Rosen section 4.3 Aaron Bloomfield.
1 Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
Introduction to Counting Discrete Structures. A Multiplication Principle.
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 =
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,
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
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.
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.
Permutations and Combinations
Unit 7 Permutation and Combination IT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLP 1 Unit 7 Permutation and Combination.
Introduction to Probability  Probability is a numerical measure of the likelihood that an event will occur.  Probability values are always assigned on.
Conditional Probability The probability that event B will occur given that A will occur (or has occurred) is denoted P(B|A) (read the probability of B.
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}:
Simple Arrangements & Selections. Combinations & Permutations A permutation of n distinct objects is an arrangement, or ordering, of the n objects. An.
Module #15: Combinatorics Rosen 5 th ed., §§ & §6.5 Now we are moving on to Ch. 4 It is the study of arrangement of objects e.g. enumeration, counting.
Chapter 2: Probability · An Experiment: is some procedure (or process) that we do and it results in an outcome. A random experiment: is an experiment we.
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.
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.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Permutations & Combinations: Selected Exercises. Copyright © Peter Cappello2 Preliminaries Denote the # of arrangements of some k elements of a set of.
Fall 2002CMSC Discrete Structures1 Combinations An r-combination of elements of a set is an unordered selection of r elements from the set. Thus,
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.
The Multiplication Rule
CSE15 Discrete Mathematics 04/19/17
COCS DISCRETE STRUCTURES
9. Counting and Probability 1 Summary
Chapter 2: Probability · An Experiment: is some procedure (or process) that we do and it results in an outcome. A random experiment: is an experiment we.
COUNTING AND PROBABILITY
Applied Combinatorics, 4th Ed. Alan Tucker
Presentation transcript:

Counting Techniques: Combinations

Combinations Typical situation: How many 5-card hands can be made from a deck of 52 cards? Definition: r-combination of a set of n elements is a subset of r of the n elements. The number of all r-combinations of a set of n elements denoted and read “n choose r”. In the example above, want to find C52,5 .

Unordered versus ordered selections Two ordered selections are the same if  the elements chosen are the same;  the elements chosen are in the same order. Ordered selections correspond to r-permutations. The number of all r-permutations is P(n,r) . Two unordered selections are the same if  the elements chosen are the same. (regardless of the order in which the elements are chosen) Unordered selections correspond to r-combinations. The number of all r-combinations is C(n,r) .

Formula for computing C(n,r) Suppose we want to compute P(n,r) . Constructing an r-permutation from a set of n elements can be thought as a 2-step process: Step 1: Choose a subset of r elements; Step 2: Choose an ordering of the r-element subset. Step 1 can be done in C(n,r) different ways. Step 2 can be done in r! different ways. (regardless of how the step 1 was performed) Based on the multiplication rule, P(n,r) = C(n, r) ∙ r! Thus,

Examples on Combinations The number of different 5-card hands from a deck of 52 cards: 4 members from a group of 11 are supposed to work as a team on a project. Q: How many distinct 4-person teams can be chosen? A:

Examples on Combinations Suppose in the project example, Mary might work on the project only if John is also involved in the project. Q: What is the number of 4-people teams that can be chosen from 11 people in this case? Solution: Divide the set S of all possible teams into two subsets. Let X be the set of teams with Mary; Y be the set of teams without Mary.  If Mary is in the team, then John is also there. The remaining 2 spots should be filled by the other 9 members. Thus, n(X) = C(9, 2) = 9∙8 / 2 = 36 .  Suppose Mary is not in the team. Then any of the other 10 members can fill the 4 spots. Thus, n(Y) = C(10, 4) = (10∙9∙8∙7) / (1∙2∙3∙4) = 210 . Based on the addition rule, n(S) = n(X) + n(Y) = 36+210 = 246

Examples on Combinations Suppose that 3 cars in a production run of 40 are defective. A sample of 4 is to be selected to be checked for defects. Questions: 1) How many different samples can be chosen? 2) How many samples will contain exactly one defective car? 3) What is the probability that a randomly chosen sample will contain exactly one defective car? 4) How many samples will contain at least one defective car? Solution: 1) C(40, 4) = (40∙39∙38∙37) / (1∙2∙3∙4) = 91,390

Examples on Combinations 2) How many samples will contain exactly one defective car? Think of selecting a sample as a 2-step process: Step 1: Choose the defective cars; Step 2: Choose the good cars. There are C(3,1) ways to choose 1 defective car. There are C(37,3) ways to choose 3 good cars. By the multiplication rule, the number of samples containing exactly 1 defective car is C(3,1) ∙ C(37,3) = 3∙(37∙36∙35) / (1∙2∙3) = 23,310 3) What is the probability that a randomly chosen sample will contain exactly one defective car? The probability = 23,310 / 91,390 = .255

Examples on Combinations 4) How many samples will contain at least one defective car? There are 2 ways to answer this question, either by the addition rule or by the difference rule. The solution by the difference rule is less intuitive but shorter. Let’s solve it by the difference rule. (# of samples with ≥1 defective cars) = (all possible samples) – (# of samples with no defective cars) . But (# of samples with no defective cars) = (# of samples with only good cars) = C(37,4)=66,045 Thus, (# of samples with ≥1 defective cars) = 91,390 – 66,045 = 25,345

Some Advice about Counting Apply the multiplication rule if ▪ The elements to be counted can be obtained through a multistep process; ▪ Each step is performed in a fixed number of ways regardless of how preceding steps were performed. Apply the addition rule if ▪ The set of elements to be counted can be broken up into disjoint subsets. Note: Often a counting problem is solved by applying both the multiplication and addition rules (and their variations) at different stages of the solution.

Some Advice about Counting In any counting problem, make sure that 1) every element is counted; 2) no element is counted more than once. (avoid double counting) When using the multiplication rule, these directives become: 1) every outcome should appear as some branch of tree; 2) no outcome should appear on more than one branch of tree. When using the addition rule, the directives become: 1) every outcome should be in some subset; 2) the subsets should be disjoint.