Discrete Structures Chapter 5 Pigeonhole Principle Nurul Amelina Nasharuddin Multimedia Department.

Slides:



Advertisements
Similar presentations
The Pigeonhole Principle:
Advertisements

22C:19 Discrete Math Counting Fall 2011 Sukumar Ghosh.
Chapter 5 Relations and Functions
COUNTING AND PROBABILITY
Application: The Pigeonhole Principle Lecture 37 Section 7.3 Wed, Apr 4, 2007.
Recursively Defined Functions
The Pigeonhole Principle
3.3 The Characteristic function of the set  function from universal set to {0,1}  Definition 3.6: Let U be the universal set, and let A  U. The characteristic.
Functions, Pigeonhole Principle Lecture 14: Nov 4 A B f( ) =
PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure.
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
The Pigeonhole Principle 6/11/ The Pigeonhole Principle In words: –If n pigeons are in fewer than n pigeonholes, some pigeonhole must contain at.
The Pigeonhole Principle
Discrete Structures Chapter 5 Relations and Functions Nurul Amelina Nasharuddin Multimedia Department.
Terminology Domain: set which holds the values to which we apply the function Co-domain: set which holds the possible values (results) of the function.
Discrete Structures Chapter 2 Part A Sequences Nurul Amelina Nasharuddin Multimedia Department.
Discrete Mathematics Lecture 7 Alexander Bukharovich New York University.
CSE115/ENGR160 Discrete Mathematics 04/10/12
Discrete Structures Chapter 5 Relations and Functions
Terminology Domain: set which holds the values to which we apply the function Co-domain: set which holds the possible values (results) of the function.
Functions f( ) = A B Lecture 15: Nov 4.
Pigeonhole.
Discrete Math for CS Chapter 5: Functions. Discrete Math for CS New Relation Operations: Given R, a relation on A x B, we define the inverse relation,
Discrete Mathematics Lecture 7 Harper Langston New York University.
1 The Pigeonhole Principle CS/APMA 202 Rosen section 4.2 Aaron Bloomfield.
Chapter 7 Functions Dr. Curry Guinn. Outline of Today Section 7.1: Functions Defined on General Sets Section 7.2: One-to-One and Onto Section 7.3: The.
1 CMSC 250 Chapter 7, Functions. 2 CMSC 250 Function terminology l A relationship between elements of two sets such that no element of the first set is.
Functions A B f( ) =. This Lecture We will define a function formally, and then in the next lecture we will use this concept in counting. We will also.
CS100 : Discrete Structures
Fall 2015 COMP 2300 Discrete Structures for Computation
Counting. Product Rule Example Sum Rule Pigeonhole principle If there are more pigeons than pigeonholes, then there must be at least one pigeonhole.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
1 Lecture 3 (part 2) Functions – Pigeonhole Principle Reading: Epp Chp 7.4.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
1 Relations and Functions Chapter 5 1 to many 1 to 1 many to many.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Week 7 - Friday.  What did we talk about last time?  Set disproofs  Russell’s paradox  Function basics.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Math 170 Project #11 Part 2 Jeffrey Martinez Bianca Orozco Omar Monroy.
The Basics of Counting Section 6.1.
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.1 and 7.2.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Unit II Discrete Structures Relations and Functions SE (Comp.Engg.)
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.
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.
Functions CSRU1400 Spring 2008Ellen Zhang 1 CISC1400, Fall 2010 Ellen Zhang.
1 The Pigeonhole Principle CS 202 Epp section ??? Aaron Bloomfield.
CS 104: Discrete Mathematics
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.
Main Menu Main Menu (Click on the topics below) Pigeonhole Principle Example Generalized Pigeonhole Principle Example Proof of Pigeonhole Principle Click.
Week 10 - Monday.  What did we talk about last time?  Combinations  Binomial theorem.
Discrete Mathematics Lecture 6
Functions 1.
The Pigeonhole Principle
COCS DISCRETE STRUCTURES
Discrete Mathematics Lecture 7
The Pigeonhole Principle
9. Counting and Probability 1 Summary
CS 2210 Discrete Structures Counting
The Pigeonhole Principle
DISCRETE COMPUTATIONAL STRUCTURES
The Pigeonhole Principle
Functions Rosen 2.3, 2.5 f( ) = A B Lecture 5: Oct 1, 2.
Presentation transcript:

Discrete Structures Chapter 5 Pigeonhole Principle Nurul Amelina Nasharuddin Multimedia Department

2       If n pigeons fly into m pigeonholes and n > m, then at least one hole must contain two or more pigeons Basic Form of the Pigeonhole Principle: A function from one finite set to a smaller finite set cannot be one-to-one: there must be at least two elements in the domain that have the same image in the co-domain Pigeonhole Principle

3 An arrow diagram for a function from a finite set to a smaller finite set must have at least two arrows from the domain that point to the same element in the codomain. Next is some of the examples on how to apply the pigeonhole principle.

4 In a group of 6 people, must there be at least 2 who were born in the same month? Not. Six people could have birthdays in each of the six months Jan to June Example (1)

5 In a group of thirteen people, must there be at least two who were born in the same month? Yes. For there are only 12 months in a year and number of people  number of months (13  12) Define a function B from the set of people to the set of 12 months B(x i ) = birth month of x i. Example (2)

6 A drawer contains 10 black and 10 white socks. You pull some out without looking at them. What is the least number of socks you must pull out to be sure to get a matched pair? Three. If you just pick two, they may have different colors. Define a function C that maps each sock to its color, i.e. C(s i ) = color of s i Example (3)

7 Let A = {1,2,3,4,5,6,7,8} (a) If five integers are selected from A, must at least one pair of the integers have a sum of 9? Yes. Partition the set A into {1,8}, {2,7}, {3,6}, and {4,5}. The function P is defined by letting P(a i ) be the subset that contains a i. (b) If four are selected? No. Example (4)

8 If n pigeons fly into m pigeonholes and for some positive integer, k, n  km, then at least one pigeonhole contains k + 1 or more pigeons. Generalized Form of Pigeonhole Principle: For any function f from a finite set X to a finite set Y and for any positive integer k, if n(X) > k  n(Y), then there is some y  Y such that y is the image of at least k+1 distinct elements of X. i.e. f(x 1 )=f(x 2 )= …=f(x k+1 )=y. Generalized Pigeonhole Principle

9 1.A hall has a seating capacity of 700. Must there be two people seated in the hall who have the same first and last initials? Why? 2.Let S = {3,4,5,6,7,8,9,10,11,12}. Suppose six integers are chosen from S. Must there be two integers whose sum is 15? Why? Quiz 4B Send your answers in the next class!