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.

Slides:



Advertisements
Similar presentations
COUNTING AND PROBABILITY
Advertisements

Recursively Defined Functions
The Pigeonhole Principle
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
3.5 Paradox  1.Russell’s paradox  A  A, A  A 。  Russell’s paradox: Let S={A|A  A}. The question is, does S  S?  i.e. S  S or S  S?  If S  S,
Functions, Pigeonhole Principle Lecture 14: Nov 4 A B f( ) =
The Pigeonhole Principle
Copyright © Zeph Grunschlag, Counting Techniques Zeph Grunschlag.
CSE115/ENGR160 Discrete Mathematics 04/10/12
Functions f( ) = A B Lecture 15: Nov 4.
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 5.4 Distributions Prepared by Jo Ellis-Monaghan.
Pigeonhole.
Sequence A list of objects arranged in a particular order.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
2012: J Paul GibsonTSP: Mathematical FoundationsMAT7003/L5- CountingAndEnumeration.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul.
Properties of the Integers: Mathematical Induction
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
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.
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
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.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
CS 490 Mathematical Logic, Combinatorics, Counting Arguments, Graph Theory, Number Theory, Discrete Probability, Recurrence Relation. Thao Tran.
Discrete Mathematics, Part II CSE 2353 Fall 2007 Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist University Some slides.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
2.4 Sequences and Summations
Discrete Mathematical Structures (Counting Principles)
Data Structures and Algorithms Discrete Math Review.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Math 170 Project #11 Part 2 Jeffrey Martinez Bianca Orozco Omar Monroy.
Chapter 2 Mathematical preliminaries 2.1 Set, Relation and Functions 2.2 Proof Methods 2.3 Logarithms 2.4 Floor and Ceiling Functions 2.5 Factorial and.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
3. Counting Permutations Combinations Pigeonhole principle Elements of Probability Recurrence Relations.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
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.
Ch. 11: Cantor’s Infinity!. N = {1, 2, 3, 4, 5, 6, …} “the natural numbers” Z = {…, –3, –2, –1, 0, 1, 2, 3, …} “the integers” Q = {all quotients “a/b”
 期中测验时间:  10 月 31 日上午 9 : 40—11 : 30  第一到第四章  即,集合,关系,函数,组合数学.
Aim: How can the word ‘infinite’ define a collection of elements?
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
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,
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
5.2 The Pigeonhole Principle
Foundations of Discrete Mathematics Chapters 5 By Dr. Dalia M. Gil, Ph.D.
Lecture 4 Infinite Cardinals. Some Philosophy: What is “2”? Definition 1: 2 = 1+1. This actually needs the definition of “1” and the definition of the.
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.
Chapter 7 – Counting Techniques CSNB 143 Discrete Mathematical Structures.
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.
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.
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. 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.
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.
Section 2.5. Cardinality Definition: A set that is either finite or has the same cardinality as the set of positive integers (Z + ) is called countable.
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 歐亞書局.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Chapter 7: Counting Principles
Copyright © Zeph Grunschlag,
Copyright © Zeph Grunschlag,
Recursively Defined Functions
Mathematical Induction Recursion
CS100: Discrete structures
ICS 253: Discrete Structures I
COUNTING AND PROBABILITY
Functions Rosen 2.3, 2.5 f( ) = A B Lecture 5: Oct 1, 2.
3.4 Cardinality Definition 3.7: The empty set is a finite set of cardinality 0. If there is a one-to-one correspondence between A and the set {0,1,2,3,…,
Theorem 3.5: Let f be an everywhere function from A to B. Then
Presentation transcript:

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 function of A is defined as a function from U to {0,1} by the following:

 Theorem 3.12: Let A and B be subsets of the universal set. Then, for any x  U, we have  (1)  A (x)  0 if only if A=   (2)  A (x)  1 if only if A=U;  (3)  A (x) ≦  B (x) if only if A  B;  (4)  A (x)   B (x) if only if A=B;  (5)  A∩B (x)=  A (x)  B (x);  (6)  A ∪ B (x)=  A (x)+  B (x)-  A∩B (x);

3.4 Cardinality  Definition 3.7: The empty set is a finite set of cardinality 0. If there is a one-to-one correspondence between A and the set {0,1,2,3,…, n-1}, then A is a finite set of cardinality n.  Definition 3.8: A set A is countably infinite if there is a one-to-one correspondence between A and the set N of natural number. We write |A|=|N|=  0. A set is countable if it is finite or countably infinite.

 Example: The set Z is countably infinite  Proof: f:N→Z,for any n  N,

 The set Q of rational number is countably infinite, i.e. |Q|=|N|=  0.  |[0 , 1]|   0.  Theorem 3.13: The R of real numbers is not countably infinite. And |R|=|[0 , 1]|.  Theorem 3.14: The power set P(N) of the set N of natural number is not countably infinite. And |P(N)|=|R|=  1.  Theorem 3.15(Cantor’s Theorem): For any set, the power set of X is cardinally larger than X.  N, P (N),P (P (N)),…

3.5 Paradox  1.Russell’s paradox  A  A, A  A 。  Russell’s paradox: Let S={A|A  A}. The question is, does S  S?  i.e. S  S or S  S?  If S  S,  If S  S,  The statements " S  S " and " S  S " cannot both be true, thus the contradiction.

 2.Cantor’s paradox  1899,Cantor's paradox, sometimes called the paradox of the greatest cardinal, expresses what its second name would imply--that there is no cardinal larger than every other cardinal.  Let S be the set of all sets. |S|?  |P (S)| or |P (S)|?  |(S)|  The Third Crisis in Mathematics

II Introductory Combinatorics Chapter 4 Introductory Combinatorics Counting

 Combinatorics, is an important part of discrete mathematics.  Techniques for counting are important in computer science, especially in the analysis of algorithm.  sorting,searching  combinatorial algorithms  Combinatorics

 existence  counting  construction  optimization  existence :Pigeonhole principle  Counting techniques for permutation and combinations  Generating function  Recurrence relations

4.1 Pigeonhole principle  Dirichlet,  shoebox principle

4.1.1 Pigeonhole principle :Simple Form  If n pigeons are assigned to m pigeonholes, and m<n, then at least one pigeonhole contains two or more pigeons.  Theorem 4.1: If n+1 objects are put into n boxes, then at least one box contain tow or more of the objects.

 Example 1: Among 13 people there are two who have their birthdays in the same month.  Example 2: Among 70 people there are six who have their birthdays in the same month.  Example 3:From the integers 1,2,…,2n, we choose n+1 intergers. Show that among the integers chosen there are two such that one of them is divisible by the other. 2ka2ka  2 r  a and 2 s  a

 Example 4:Given n integers a 1,a 2,…,a n, there exist integers k and l with 0  k<l  n such that a k+1 +a k+2 +…+a l is divisible by n.  a 1, a 1 +a 2, a 1 +a 2 +a 3,…,a 1 +a 2 +…+a n.  Example 5:A chess master who has 11 weeks to prepare for a tournament decides to play at least one game every day but, in order not to tire himself, he decides not to play more than 12 games during any calendar week. Show that there exists a succession of (consecutive) days during which the chess master will have played exactly 21 games.

 Concerning Application 5, Show that there exists a succession of (consecutive) days during which the chess master will have played exactly 22 games.  (1)The chess master plays few than 12 games at least one week  (2)The chess master plays exactly 12 games each week

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 either the first box contains at least q 1 objects, or the second box contains at least q 2 objects, …, or the nth box contains at least q n objects.  Proof:Suppose that we distribute q 1 +q 2 +…+q n -n+1 objects among n boxes.

 (1)If n(r-1)+1 objects are put into n boxes, then at least one of the boxes contains r or more of the objects. Equivalently,  (2)If the average of n non-negative integers m 1,m 2,…,m n is greater than r-1: (m 1 +m 2 +…+m n )/n>r-1, then at least one of the integers is greater than or equal to r.  Proof:(1)q 1 =q 2 =…=q n =r  q 1 +q 2 +…+q n -n+1=rn-n+1=(r-1)n+1, then at least one of the boxes contains r or more of the objects 。  (2)(m 1 +m 2 +…+m n )>(r-1)n ,  (m 1 +m 2 +…+m n )≥(r-1)n +1

 Example 6:Two disks, one smaller than the other, are each divided into 200 congruent sectors. In the larger disk 100 of the sectors are chosen arbitrarily and painted red; the other 100 of the sectors are painted blue. In the smaller disk each sector is painted either red or blue with no stipulation on the number of red and blue sectors. The small disk is then placed on the larger disk so that their centers coincide. Show that it is possible to align the two disks so that the number of sectors of the small disk whose color matches the corresponding sector of the large disk is at least 100.  if the large disk is fixed in place  there are 200 possible positions for the small disk such that each sector of the small disk is contained in a sector of the large disk.  color matches the corresponding  20000/200=100>100-1  Position with at least 100 color matches

 Example 7:Show that every sequence a 1,a 2,…,a n 2 +1 of n 2 +1 real numbers contains either an increasing subsequence of length n+1 or a decreasing subsequence of length n+1.  Proof:We suppose that there is no increasing subsequence of length n+1 and show that there must be a decreasing subsequence of length n+1.  For each k=1,2, …, n 2 +1 let m k be the length of the longest increasing subsequence which begins with a k.  Let m k 1 =m k 2 =…=m k (n+1) (1  k 1 <k 2 <…<k n+1  n 2 +1).  m k 1 a k 1, m k 2 a k 2, … m k (n+1) a k (n+1),  a k 1,a k 2,…,a k (n+1) (1  k 1 <k 2 <…<k n+1  n 2 +1)  Now show that is a decreasing subsequence

 Permutations of sets, 3.1 P79-81  Combinations of sets,3.2 P83-84  Permutations and Combinations of multisets P82,P85-86

 Exercise P181 4, P90 3,7  1.From the integers 1,2,…,2n, we choose n+1 intergers. Show that among the integers chosen there are two which are relatively prime.  2.A computer network consists of six computers. Each computer is directly connected to at least one of the other computers. Show that there are at least two computers in the network that are directly connected to the same number of other computers.  3.Show that for any given n+2 integers there exist two of them whose sum, or else whose difference is divisible by 2n.