Discrete Structures Combinations. Order Doesn’t Matter In the previous section, we looked at two cases where order matters: Multiplication Principle –

Slides:



Advertisements
Similar presentations
5.3 Permutations and Combinations
Advertisements

DM. 13. A method for counting outcomes of multi-stage processes If you want to perform a series of tasks and the first task can be done in (a) ways, the.
MATHCOUNTS TOOLBOX Facts, Formulas and Tricks
Lecture 12 Permutations and Combinations CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
CMPS 2433 Chapter 8 Counting Techniques Midwestern State University Dr. Ranette Halverson.
Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability.
COUNTING AND PROBABILITY
Permutations and Combinations
Probability – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Probability Reading: Kolman, Section 3.4.
The Division Rule Theorem: Suppose a set A has n elements and is partitioned by the collection {A 1, A 2,..., A p }, where each partition set has m elements.
BITS Pilani Pilani Campus Discrete Structures for Computer Science Section – 3 - Tutorial – 2 (21 Aug 2013) Jagat Sesh Challa.
Chapter 2 Section 2.4 Permutations and Combinations.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Combinations We should use permutation where order matters
Chapter 11 Counting Methods © 2008 Pearson Addison-Wesley. All rights reserved.
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Permutations and Combinations
Introduction to Counting Discrete Structures. A Multiplication Principle.
Counting. Product Rule Example Sum Rule Pigeonhole principle If there are more pigeons than pigeonholes, then there must be at least one pigeonhole.
Basic Counting. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations, combinations.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
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.
Section 10-3 Using Permutations and Combinations.
Math 170 Project #11 Part 2 Jeffrey Martinez Bianca Orozco Omar Monroy.
2 Permutations and Combinations Lesson 8 HAND OUT REFERENCE SHEET AND GO OVER IT.
3. Counting Permutations Combinations Pigeonhole principle Elements of Probability Recurrence Relations.
Elements of Combinatorics (Continuation) 1. Pigeonhole Principle Theorem. If pigeons are placed into pigeonholes and there are more pigeons than pigeonholes,
Unit 7 Permutation and Combination IT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLP 1 Unit 7 Permutation and Combination.
2.2 Permutations (Textbook Section 4.6). Recall Factorial Notation  The number of ways to arrange n objects into n spots is n! (read “!” a “factorial”)
Permutations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Permutations Reading: Kolman, Section 3.1.
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.
I CAN: Use Permutations and Combinations
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
Combinations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Combinations Reading: Kolman, Section 3.2.
Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
3.2 Combinations.
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.
Permutations Counting where order matters If you have two tasks T 1 and T 2 that are performed in sequence. T 1 can be performed in n ways. T 2 can be.
Chapter 7 – Counting Techniques CSNB 143 Discrete Mathematical Structures.
Chapter 12.6 Notes. O A positive integer n is the product of the positive integers less than or equal to n. 0! Is defined to be 1. n! = n ● (n -1) ● (n.
L14: Permutations, Combinations and Some Review EECS 203: Discrete Mathematics.
Discrete Mathematics. Exercises Exercise 1:  There are 18 Computer Science (CS) majors and 325 Business Administration (BA) majors at a college.
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.
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
11.1 CompSci 102© Michael Frank Today’s topics CountingCounting –Generalized Pigeonhole Principle –Permutations –Combinations –Binomial Coefficients –Writing.
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.
Chapter 10 Counting Methods.
L14: Permutations, Combinations and Some Review
MATH 2311 Section 2.1.
CSE15 Discrete Mathematics 04/19/17
Chapter 5, Section 5.1 The Basics of Counting
CSNB 143 Discrete Mathematical Structures
Today’s topics Counting Reading: Sections , 4.4 Upcoming
Module #15: Combinatorics
Counting techniques Basic Counting Principles, Pigeonhole Principle, Permutations and Combinations.
Module #15: Combinatorics
MATH 2311 Section 2.1.
Discrete Mathematics and its Applications
Using Permutations and Combinations
CMPS 2433 Chapter 8 Counting Techniques
The Division Rule Theorem: Suppose a set A has n elements and is partitioned by the collection {A1, A2, ..., Ap}, where each partition set has m elements.
10.3 – Using Permutations and Combinations
MATH 2311 Section 2.1.
Presentation transcript:

Discrete Structures Combinations

Order Doesn’t Matter In the previous section, we looked at two cases where order matters: Multiplication Principle – duplicates allowed Permutations – duplicates not allowed

Order Doesn’t Matter Duplicates Not Allowed What if order doesn’t matter, for example, a hand of cards in poker? Example: the elements 6, 5, and 2 make six possible sequences: 652, 625, 256, 265, 526, and 562 If order doesn’t matter, these six sequences would be considered the same.

Removing Order from Order Notice the example given on the previous slide of the possible sequences involving the elements 6, 5, and 2. The number of arrangements of 6, 5, and 2 equals the number of ways three elements can be ordered, i.e., 3 P 3. 3 P 3 = 3!/(3-3)! = 6/1 = 6

Removing Order from Order (continued) Assume that we came up with the number of permutations of three elements from the ten decimal digits 10 P 3 = 10!/(10-3)! = 10!/7! = 720 Each subset of three integers from the ten decimal digits would produce 6 sequences. Therefore, to remove order from the 720 sequences, simply divide by 6 to get 120.

Combinations Notation: nCr is called number of combinations of n objects taken r at a time. n C r = n!/[r!  (n – r)!] Example: How many 5 card hands can be dealt from a deck of 52? 52 C 5 = 52!/(5!  (52-5)!) How many ways can a pair of dice come up?

Order Doesn’t Matter Duplicates Allowed Assume you are walking with your grocery cart past the 2 liter sodas in Walmart. You need to pick up 10 bottles out of: Coke Sprite Dr. Pepper Pepsi A&W Root Beer

Buying Sodas You can define how you selected the sodas with a binary string of ones and zeros. A one indicates you have selected a soda from that category. A zero says that you have moved onto the next category.

Buying Sodas (continued) Cokes were picked No Sprites were picked 3 Dr. Peppers were picked 2 Pepsis were picked 3 A&W’s were picked Moved to Sprites Moved to Pepsi Moved to A&W Moved to Dr. Pepper Last zero is unnecessary

Continued This means that a binary pattern of 10 + (5 – 1) = 14 ones and zeros can be used to represent a selection of 10 items from 5 possibilities without worrying about order and allowing duplicates. This is the same as having 14 elements from which we will select 10 to be set as one, i.e., 14 C 10 = 14!/(10!  ( )!) = 1001

Order Doesn’t Matter Duplicates Allowed The general formula for order doesn’t matter and duplicates allowed for a selection of r items from a set of n items is: (n + r – 1) C r

Pigeonhole Principle Pigeonhole Principles state that if there are more pigeons than pigeonholes, than there must be at least one pigeonhole with at least 2 pigeons in it. Theorem 1: If there are n pigeon are assigned to m pigeonhole, where m < n, then at least one pigeonhole contains two or more pigeons.

Contd. Example: if 8 people were chosen, at least 2 people were being born in the same day (Mon. to Sun). Show that by using pigeonhole principle. Because there are 8 people and only 7 days per week, so Pigeonhole Principle says that, at least two or more people were being born in the same day.

The Extended Pigeonhole Principle If there are m pigeonholes and more than 2m pigeons, three or more pigeons will have to be assigned to at least one of the pigeonholes. Notation If n and m are positive integers, then  n/m  stands for largest integer less than equal to the rational number n/m.  3/2  = 1,  9/4  = 2,  6/3  = 2

Contd. Theorem 2 If n pigeons are assigned to m pigeonholes, then one of the pigeonholes must contain at least  (n-1)/m  + 1 pigeons.

Examples Show that if there are 30 students in a class, at least the name of 2 students must start with the same letter. N = 30 students (pigeons) M =26 possible letter to start a name: (holes) Therefore by pigeonhole principle there will be at least  30/26  + 1 = 2 person that will have the same name.