CMPS 2433 Chapter 8 Counting Techniques Midwestern State University Dr. Ranette Halverson.

Slides:



Advertisements
Similar presentations
The Pigeonhole Principle: Selected Exercises
Advertisements

22C:19 Discrete Math Counting Fall 2011 Sukumar Ghosh.
10.2 Combinations and Binomial Theorem What you should learn: Goal1 Goal2 Use Combinations to count the number of ways an event can happen. Use the Binomial.
12.2 Combinations and Binomial Thm p In the last section we learned counting problems where order was important For other counting problems where.
5.3 Permutations and Combinations
Counting. Counting = Determining the number of elements of a finite set.
Counting Techniques: Permutations of Selected Elements Addition Rule, Difference Rule, Inclusion/Exclusion Rule.
Chapter 5 Relations and Functions
Equivalence Relations
Permutations and Combinations
Application: The Pigeonhole Principle Lecture 37 Section 7.3 Wed, Apr 4, 2007.
The Pigeonhole Principle
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( ) =
Discrete Structures Chapter 5 Pigeonhole Principle Nurul Amelina Nasharuddin Multimedia Department.
Combinations We should use permutation where order matters
Counting Techniques The Fundamental Rule of Counting (the mn Rule); Permutations; and Combinations.
Chapter 8 Counting Techniques PASCAL’S TRIANGLE AND THE BINOMIAL THEOREM.
Chapter 11 Counting Methods © 2008 Pearson Addison-Wesley. All rights reserved.
Classify Triangles Standard 4C.
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.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Fall 2015 COMP 2300 Discrete Structures for Computation
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Chapter 11 Counting Methods © 2008 Pearson Addison-Wesley. All rights reserved.
Section 10-3 Using Permutations and Combinations.
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,
Ch Counting Techniques Product Rule If the first element or object of an ordered pair can be used in n 1 ways, and for each of these n1 ways.
Counting Methods Review General Guidelines. Fundamental Counting Principle Each category outcome is independent of any other category outcome OR Items.
Section 4.2 Congruence and Triangles. Two figures are congruent if they have exactly the same size and shape.
Counting CSC-2259 Discrete Structures Konstantin Busch - LSU1.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 4 Counting methods and the pigeonhole principle.
CSNB143 – Discrete Structure
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,
Discrete Structures Combinations. Order Doesn’t Matter In the previous section, we looked at two cases where order matters: Multiplication Principle –
Counting Techniques. Multiplication Principle (also called the Fundamental Counting Principle) Combinations Permutations Number of subsets of a given.
Combinations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Combinations Reading: Kolman, Section 3.2.
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.
6 6.3 © 2016 Pearson Education, Inc. Orthogonality and Least Squares ORTHOGONAL PROJECTIONS.
2.6 APPLICATIONS OF INDUCTION & OTHER IDEAS IMPORTANT THEOREMS MIDWESTERN STATE UNIVERSITY – COMPUTER SCIENCE.
1 The Pigeonhole Principle CS 202 Epp section ??? Aaron Bloomfield.
Special Topics. Calculating Outcomes for Equally Likely Events If a random phenomenon has equally likely outcomes, then the probability of event A is:
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.
Analyzing Isosceles Triangles Chapter 4, Section 6.
Nonregular Languages How do you prove a language to be regular? How do you prove a language to be nonregular? A Pumping Lemma.
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.
Operations on Sets Union of Sets Intersection of Sets
Triangles Chapter What is the sum of the angles inside a triangle? 180º? Prove it m Given A B C Angle Addition Postulate/Definition of a Straight.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
CONGRUENT TRIANGLES. Congruence We know… Two SEGMENTS are congruent if they’re the same length. Two ANGLES are congruent if they have the same measure.
Classify These Triangles by Sides and Angles. Chapter 4 Congruent Triangles Section 4.1: Triangle Sum Properties Todays Objective: Determine if a right.
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
Week 9 - Friday.  What did we talk about last time?  Permutations  Counting elements in sets  Brief introduction to combinations.
Chapter 10 Counting Methods.
CSNB 143 Discrete Mathematical Structures
Counting Methods and Probability Theory
CS 2210 Discrete Structures Counting
2.6 Applications Of Induction & other ideas Important Theorems
Notes Over Pythagorean Theorem
The Pigeonhole Principle
Counting Methods and Probability Theory
DISCRETE COMPUTATIONAL STRUCTURES
Chapter 4: Triangle Congruence
CMPS 2433 Chapter 8 Counting Techniques
Module 15: Lesson 2 Isosceles & Equilateral Triangles
Triangle Relationships
Presentation transcript:

CMPS 2433 Chapter 8 Counting Techniques Midwestern State University Dr. Ranette Halverson

Review From Previous Chapters 2.6 Binary Search For an ordered list of 2 n n+1 comparisons are needed to find an item For an ordered list of n items, at most log 2 n comparisons are needed Example: How many comparisons for list of… 100o items? 1,000,000 items?

Review Permutation: an ordering of a set of elements Permutations of set S with n elements is n! Permutations of r elements taken from n is (n!)/(n-r)! Example - S contains 7 elements How many different permutations? 7! How many permutations of only 5 of the elements? 7!/3!

Review Theorem 1.3: A set of N elements has exactly 2 N subsets Consider S = {1, 3, 5, 7, 90} – include or not? Theorem 2.10 (p. 89) :Set S has n elements. # of subsets containing r elements is (n!)/(r! (n-r)!) Referred to as Combinations of n items taken r at a time. C(n,r) Note: r! term eliminates duplicates Example: How many subsets of size 3 from S?

Section 8.2 ~ 3 Fundamental Principles Pigeonhole Principle: If pigeons are placed in pigeon holes and there are more pigeons than holes, then some holes must contain at least 2 pigeons. ~~ If number of pigeons is more than k times the number of holes, then some hole must contain at least k+1 pigeons.

Section 8.2 ~ 3 Fundamental Principles Applications: Pigeonhole Principle How many people must be selected from a collection of 15 couples to ensure at least one couple is selected? How many distinct integers must be chosen to assure there are at least 10 having the same congruence modulo 7? Select any 5 points on the interior of an equilateral triangle having sides length 1. Show that there is at least one pair of points with distance between <= ½.

Fundamental Principle #2 Multiplication Principle: Consider a procedure of k steps. S’pose step 1 can be done in n1 ways, step 2 in n2 ways, etc. The number of different ways the entire procedure can be performed is n1*n2*n3*…*nk.

Fundamental Principle #2 Applications: Multiplication Principle Couple has 5 first names & 3 middle chosen for a baby. How many different baby names? Binary numbers: How many different binary numbers of length 8 are there? What are the values? Phone numbers: How many numbers are possible in the 940 area code? (First 2 digits cannot be 0 or 1) Example 8.10 (p. 410)

Fundamental Principle #3 Addition Principle: Assume k sets with n1 elements in set 1, n2 in set 2, etc. and all elements are distinct. The number of elements in the union of the sets is n1+n2+n3+…+nk Note: Sometimes “solution” is to define the distinct sets so that they can be easily counted.

Fundamental Principle #3 Applications: Addition Principle Couple has 5 girl names and 7 boy names for baby. How many different names? How many integers between 1 – 100 (inclusive) are even or end in 5? Example 8.14 (p. 412)

Homework Section 8.2 Section 8.2 – page – 36 ~ All except proofs

8.1 Pascal’s Triangle & Binomial Theorem Theorem 8.1 For integers r & n, 1 <= r <= n, C(n,r) = C(n-1,r-1) + C(n-1,r) Example: C (7,5) = C (6,4) + C (6,5) Reminder: C(n,r) = n! / (r! (n-r)!)

Pascal’s Triangle C(0,0) C(1,0) C(1,1) C(2,0) C(2,1) C(2,2) C(3,0) C(3,1) C(3,2) C(3,3) etc…

Pascal’s Triangle etc…

Application of Pascal’s Triangle Theorem 8.2: If r and n are integers such that 0 <= r <= n, then C(n,r) = C(n,n-r) Example: C(5,2) = C(5,3)

Theorem 8.3: Binomial Theorem For every positive integer n, (x + y) n = C(n,0)x n + C(n,1)x n-1 y + … + C(n,n-1) x y n-1 + C(n,n)y n C(n,r) are called binomial coefficients

Homework Section 8.1 – page 405+ Problems