Week 9 - Friday.  What did we talk about last time?  Permutations  Counting elements in sets  Brief introduction to combinations.

Slides:



Advertisements
Similar presentations
Basic Permutations and Combinations
Advertisements

5.3 Permutations and Combinations
Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability.
Counting Chapter 6 With Question/Answer Animations.
Counting Techniques: Combinations
Chapter 3b Counting Rules. Permutations  How many ways can 5 students in a class of 30 be assigned to the front row in the seating chart?  There are.
Counting and Probability The outcome of a random process is sure to occur, but impossible to predict. Examples: fair coin tossing, rolling a pair of dice,
CSE115/ENGR160 Discrete Mathematics 04/17/12
Discrete Mathematics Lecture 7 More Probability and Counting Harper Langston New York University.
Permutations r-permutation (AKA “ordered r-selection”) An ordered arrangement of r elements of a set of n distinct elements. permutation of a set of n.
Chapter 7 - Part Two Counting Techniques Wednesday, March 18, 2009.
Discrete Mathematics Lecture 6 Alexander Bukharovich New York University.
Set, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Chapter 8 Counting Techniques PASCAL’S TRIANGLE AND THE BINOMIAL THEOREM.
Discrete Mathematics Lecture 7 Harper Langston New York University.
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
1 Permutations and Combinations CS/APMA 202 Rosen section 4.3 Aaron Bloomfield.
Week 10 - Monday.  What did we talk about last time?  More permutations  Addition rule  Inclusion and exclusion.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Chapter 8 Counting Principles: Further Probability Topics Section 8.2 Combinations.
1 Permutations and Combinations CS/APMA 202 Rosen section 4.3 Aaron Bloomfield.
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.
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.4,
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
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Binomial Coefficients, Inclusion-exclusion principle
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Permutations and Combinations
The Binomial Theorem. Powers of Binomials Pascal’s Triangle The Binomial Theorem Factorial Identities … and why The Binomial Theorem is a marvelous.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Section 10-3 Using Permutations and Combinations.
March 10, 2015Applied Discrete Mathematics Week 6: Counting 1 Permutations and Combinations How many different sets of 3 people can we pick from a group.
2 Permutations and Combinations Lesson 8 HAND OUT REFERENCE SHEET AND GO OVER IT.
Warm Up 2/1/11 1.What is the probability of drawing three queens in a row without replacement? (Set up only) 2.How many 3 letter permutations can be made.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Week 11 - Wednesday.  What did we talk about last time?  Exam 2 post-mortem  Combinations.
Homework Homework due now. Reading: relations
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 4 Counting methods and 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,
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.6,
Discrete Structures Combinations. Order Doesn’t Matter In the previous section, we looked at two cases where order matters: Multiplication Principle –
1 CS 140 Discrete Mathematics Combinatorics And Review Notes.
I CAN: Use Permutations and Combinations
3.2 Combinations.
CS Lecture 8 Developing Your Counting Muscles.
5.5 Generalized Permutations and Combinations
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.
2.6 APPLICATIONS OF INDUCTION & OTHER IDEAS IMPORTANT THEOREMS MIDWESTERN STATE UNIVERSITY – COMPUTER SCIENCE.
L14: Permutations, Combinations and Some Review EECS 203: Discrete Mathematics.
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.
Week 9 - Friday.  What did we talk about last time?  Partial orders  Total orders  Basic probability  Event  Sample space  Monty Hall  Multiplication.
Week 10 - Monday.  What did we talk about last time?  Combinations  Binomial theorem.
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.
Section 6.3. Section Summary Permutations Combinations.
Chapter 10 Counting Methods.
L14: Permutations, Combinations and Some Review
Developing Your Counting Muscles
CSE15 Discrete Mathematics 04/19/17
Basic Counting.
Basic Counting Lecture 9: Nov 5, 6.
CMPS 2433 Chapter 8 Counting Techniques
Presentation transcript:

Week 9 - Friday

 What did we talk about last time?  Permutations  Counting elements in sets  Brief introduction to combinations

 A deck of cards has positive integers on one side and either red or blue on the other side.  Consider the following hypothesis: If a card shows an even number on one side, it's red on the other side.  Which cards must you turn over to test this hypothesis?

 How many different subsets of size r can you take out of a set of n items?  Subset of size 3 out of a set of size 5?  Subset of size 4 out of a set of size 5?  Subset of size 5 out of a set of size 5?  Subset of size 1 out of a set of size 5?  This is called an r-combination, written

 In r-permutations, the order matters  In r-combinations, the order doesn't  Thus, the number of r-combinations is just the number of r-permutations divided by the possible orderings

 How many ways are there to choose 5 people out of a group of 12?  What if two people don't get along? How many 5 person teams can you make from a group of 12 if those two people cannot both be on the team?

 How many five-card poker hands contain two pairs?  If a five-card hand is dealt at random from an ordinary deck of cards, what is the probability that the hand contains two pairs?

 What if you want to take r things out of a set of n things, but you are allowed to have repetitions?  Think of it as putting r things in n categories  Example: n = 5, r = 4  We could represent this as x||xx|x|  That's an r x's and n – 1 |'s xxxx

 So, we can think of taking an r-combination with repetitions as choosing r items in a string that is r + n – 1 long and marking those as x's  Consequently, the number of r-combinations with repetitions is

 Let's say you grab a handful of 10 Starbursts  Original Starbursts come in  Cherry  Lemon  Strawberry  Orange  How many different handfuls are possible?  How many possible handfuls will contain at least 3 cherry?

 This is a quick reminder of all the different ways you can count things: Order MattersOrder Doesn't Matter Repetition Allowed nknk Repetition Not Allowed P(n,k)P(n,k)

 Hopefully, you are all familiar with Pascal's Triangle, the beginning of which is:  If we number rows and columns starting at 0, note that the value of row n, column r is exactly

 Pascal's Triangle works because of Pascal's Formula:  We can easily show its truth:

 a + b is called a binomial  Using combinations (or Pascal's Triangle) it is easy to compute (a + b) n  We could prove this by induction, but you probably don't care

 Compute (1 – x) 6 using the binomial theorem

 Pigeonhole principle  Probability axioms  Expected values

 Finish Homework 7  Due tonight before midnight  Keep reading Chapter 9