The Pigeonhole Principle

Slides:



Advertisements
Similar presentations
Tutorial 2: First Order Logic and Methods of Proofs
Advertisements

Counting Chapter 6 With Question/Answer Animations.
Turn in HW7 (put your name on it) Return HW6 –Avg: 77Adj Avg: 82.5Median: 85 –Emmanuel graded Section 3.1 (green) –Pascal graded Section 3.2 (red) –
This trick relies on three nice ideas from discrete mathematics: pigeonhole principle 5 pigeons (cards) in 4 holes (suits) means at least two pigeons are.
The Pigeonhole Principle College of Information Technology & Design
Introduction to Proofs
Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability.
Counting Chapter 6 With Question/Answer Animations.
COUNTING AND PROBABILITY
Application: The Pigeonhole Principle Lecture 37 Section 7.3 Wed, Apr 4, 2007.
The Pigeonhole Principle
Chapter 6 With Question/Answer Animations. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
The Pigeonhole Principle 6/11/ The Pigeonhole Principle In words: –If n pigeons are in fewer than n pigeonholes, some pigeonhole must contain at.
Discrete Structures Chapter 5 Pigeonhole Principle Nurul Amelina Nasharuddin Multimedia Department.
The Pigeonhole Principle
CSE115/ENGR160 Discrete Mathematics 04/10/12
1 The Pigeonhole Principle CS/APMA 202 Rosen section 4.2 Aaron Bloomfield.
CS100 : Discrete Structures
Counting Chapter 6 With Question/Answer Animations.
Fall 2015 COMP 2300 Discrete Structures for Computation
Counting. Why counting  Determine the complexity of algorithms To sort n numbers, how many instructions are executed ?  Count the number of objects.
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.
Chapter The Basics of Counting 5.2 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,
CS 103 Discrete Structures Lecture 16
5.2 The Pigeonhole Principle
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
1 Chapter 2 Pigeonhole Principle. 2 Summary Pigeonhole principle –simple form Pigeonhole principle –strong form Ramsey’s theorem.
1 The Pigeonhole Principle CS 202 Epp section 7.3.
Introduction Suppose that a password on a computer system consists of 6, 7, or 8 characters. Each of these characters must be a digit or a letter of the.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
1 The Pigeonhole Principle CS 202 Epp section ??? Aaron Bloomfield.
5-5 Indirect Proof. Indirect Reasoning: all possibilities are considered and then all but one are proved false. The remaining possibility must be true.
The Pigeonhole Principle. Pigeonhole principle The pigeonhole principle : If k is a positive integer and k+1 or more objects are placed into k boxes,
Pigeonhole Principle – Page 1CPTR311 – Discrete Structures CPTR311 Discrete Structures Pigeonhole Principle Reading: Kolman, Section 3.3.
Pigeonhole Principle. If n pigeons fly into m pigeonholes and n > m, then at least one hole must contain two or more pigeons A function from one finite.
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.
Main Menu Main Menu (Click on the topics below) Pigeonhole Principle Example Generalized Pigeonhole Principle Example Proof of Pigeonhole Principle Click.
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.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 5 Counting 歐亞書局.
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
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.
Lec 13 – March 10  The Basics of Counting  The Pigeonhole Principle  Permutations and Combinations  Binomial Coefficients and Identities  Generalized.
Counting Chapter 6.
Principle of Inclusion and Exclusion
Lecture 10 To define the Binomial Theorem
Generalized Permutations and Combinations
Today’s topics Counting Reading: Sections , 4.4 Upcoming
The Pigeonhole Principle
Standard Representations of Regular Languages
Discrete Structures for Computer Science
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
The Pigeonhole Principle
9. Counting and Probability 1 Summary
Counting Chapter 6 With Question/Answer Animations
CS 2210 Discrete Structures Counting
Indirect Argument: Contradiction and Contraposition
CS100: Discrete structures
COUNTING AND PROBABILITY
Non-regular languages
The Pigeonhole Principle
CS 220: Discrete Structures and their Applications
Counting techniques Basic Counting Principles, Pigeonhole Principle, Permutations and Combinations.
Mathematical Induction
Pigeon-Hole Principle ( PHP )
With Question/Answer Animations
Presentation transcript:

The Pigeonhole Principle Section 6.2

Section Summary The Pigeonhole Principle The Generalized Pigeonhole Principle

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. Pigeonhole Principle: If k is a positive integer and k + 1 objects are placed into k boxes, then at least one box contains two or more objects. Proof: We use a proof by contraposition. Suppose none of the k boxes has more than one object. Then the total number of objects would be at most k. This contradicts the statement that we have k + 1 objects.

The Pigeonhole Principle Corollary 1: A function f from a set with k + 1 elements to a set with k elements is not one-to-one. Proof: Use the pigeonhole principle. Create a box for each element y in the codomain of f . Put in the box for y all of the elements x from the domain such that f(x) = y. Because there are k + 1 elements and only k boxes, at least one box has two or more elements. Hence, f can’t be one-to-one. Example: Among any group of 367 people, there must be at least two with the same birthday, because there are only 366 possible birthdays.

The Generalized Pigeonhole Principle The Generalized Pigeonhole Principle: If N objects are placed into k boxes, then there is at least one box containing at least ⌈N/k⌉ objects. Proof: We use a proof by contraposition. Suppose that none of the boxes contains more than ⌈N/k⌉ − 1 objects. Then the total number of objects is at most where the inequality ⌈N/k⌉ < ⌈N/k⌉ + 1 has been used. This is a contradiction because there are a total of n objects. Example: Among 100 people there are at least ⌈100/12⌉ = 9 who were born in the same month.

The Generalized Pigeonhole Principle Example: a) How many cards must be selected from a standard deck of 52 cards to guarantee that at least three cards of the same suit are chosen? b) How many must be selected to guarantee that at least three hearts are selected? Solution: a) We assume four boxes; one for each suit. Using the generalized pigeonhole principle, at least one box contains at least ⌈N/4⌉ cards. At least three cards of one suit are selected if ⌈N/4⌉ ≥3. The smallest integer N such that ⌈N/4⌉ ≥3 is N = 2 ∙ 4 + 1 = 9. b) A deck contains 13 hearts and 39 cards which are not hearts. So, if we select 41 cards, we may have 39 cards which are not hearts along with 2 hearts. However, when we select 42 cards, we must have at least three hearts. (Note that the generalized pigeonhole principle is not used here.)