Applied Combinatorics, 4th Ed. Alan Tucker

Slides:



Advertisements
Similar presentations
1 Copyright © Cengage Learning. All rights reserved. 4 Probability.
Advertisements

Warm-Up Problem Can you predict which offers more choices for license plates? Choice A: a plate with three different letters of the alphabet in any order.
Chapter 10: Probability of Events
Section 1.1, Slide 1 Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 12.2, Slide 1 12 Counting Just How Many Are There?
Chapter 7 Logic, Sets, and Counting Section 3 Basic Counting Principles.
Counting Tools ● Enumeration ● Multiplication ● Addition ● Negation.
Chapter 6.1 Generating Functions
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 5.4 Distributions Prepared by Jo Ellis-Monaghan.
4/2/03Tucker, Section 5.31 How many ways to arrange the six letters b, a, n, a, n, a ? Arrangements and Selections With Repetitions Six places: __ __ __.
HW2 assignment. 1.A fair coin is tossed 5 times. Find a probability of obtaining (a) exactly 3 heads; (b) at most 3 heads Solution: Binomial distribution.
Michael Duquette & Whitney Sherman
3/26/03 Tucker, Applied Combinatorics Section General Counting Methods for Arrangements and Selections Tucker, Applied Combinatorics, Sec. 5.1,
Tucker, Section 5.41 Section 5.4 Distributions By Colleen Raimondi.
Applied Combinatorics, 4th Ed. Alan Tucker
Basic Probability (Chapter 2, W.J.Decoursey, 2003) Objectives: -Define probability and its relationship to relative frequency of an event. -Learn the basic.
How many ways are there to pass through city A where the arrows represent one-way streets? Answer: mn ways The counting principal: Suppose two experiments.
Chapter 5 Section 5 Counting Techniques.
5.5 Counting Techniques. More Challenging Stuff  The classical method, when all outcomes are equally likely, involves counting the number of ways something.
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.
9/15/2015MATH 106, Section 31 Section 3 Recipes Questions about homework? Submit homework!
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Chapter 4 Lecture 4 Section: 4.7. Counting Fundamental Rule of Counting: If an event occurs m ways and if a different event occurs n ways, then the events.
Finding Probability Using Tree Diagrams and Outcome Tables
Introduction to Counting Methods MATH 102 Contemporary Math S. Rook.
Section 6.5 ~ Combining Probabilities Introduction to Probability and Statistics Ms. Young ~ room 113.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 4.3.
Slide 7- 1 Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
TREES AND COUNTING TECHNIQUES When we simple events like rolling a die, the number of possible outcomes is easily found. When you start to have multiple.
Logic and Introduction to Sets Chapter 6 Dr.Hayk Melikyan/ Department of Mathematics and CS/ Basic Counting Principles 6.3 Basic Counting.
Lesson Counting Techniques. Objectives Solve counting problems using the Multiplication Rule Solve counting problems using permutations Solve counting.
Elements of Combinatorics (Continuation) 1. Pigeonhole Principle Theorem. If pigeons are placed into pigeonholes and there are more pigeons than pigeonholes,
Objectives Solve counting problems using the Multiplication Rule Solve counting problems using permutations Solve counting problems using combinations.
March 10,  Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound.
Chapter 7 Logic, Sets, and Counting Section 4 Permutations and Combinations.
Sullivan Algebra and Trigonometry: Section 14.2 Objectives of this Section Solve Counting Problems Using the Multiplication Principle Solve Counting Problems.
IT College Introduction to Computer Statistical Packages Lecture 8 Eng. Heba Hamad.
The Basics of Counting Section 6.1.
Probability 2 Compound Probability.  Now lets consider the following:  2 dice are rolled and the numbers are added together.  What are the numbers.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Section Section Summary The Product Rule The Sum Rule The Subtraction Rule The Division Rule Examples, Examples, and Examples Tree Diagrams.
CS201: Data Structures and Discrete Mathematics I
Discrete Probability Distribution Henry Mesa Use your keyboard’s arrow keys to move the slides forward (▬►) or backward (◄▬) Hit the Esc key to end show.
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Section 1.1, Slide 1 Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 12.2, Slide 1 12 Counting Just How Many Are There?
Introduction to Discrete Probability Epp, section 6.x CS 202.
THE NATURE OF COUNTING Copyright © Cengage Learning. All rights reserved. 12.
What is the probability of two or more independent events occurring?
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
 Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound events  Independent.
Section 1.3 Each arrangement (ordering) of n distinguishable objects is called a permutation, and the number of permutations of n distinguishable objects.
Copyright © Peter Cappello 2011 Simple Arrangements & Selections.
COUNTING Permutations and Combinations. 2Barnett/Ziegler/Byleen College Mathematics 12e Learning Objectives for Permutations and Combinations  The student.
Section Basic Counting Principles: The Product Rule The Product Rule: A procedure can be broken down into a sequence of two tasks. There are n 1.
Special Topics. Calculating Outcomes for Equally Likely Events If a random phenomenon has equally likely outcomes, then the probability of event A is:
EXIT NEXT Click one of the buttons below or press the enter key BACKTOPICSEXIT NEXT Click one of the buttons below or press the enter key BACKTOPICS.
Textbooks (required): A First course in Probability (8th Ed), Sheldon Ross.
Permutations and Combinations AII Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish.
Operations on Sets Union of Sets Intersection of Sets
SECTION 5.4 COUNTING. Objectives 1. Count the number of ways a sequence of operations can be performed 2. Count the number of permutations 3. Count the.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
The Multiplication Rule
Sequences, Series, and Probability
A First course in Probability (8th Ed), Sheldon Ross
CS1022 Computer Programming & Principles
Do Now If fours cards are drawn from a deck without replacement, find the probability of getting these results: All kings All diamonds All sevens.
8.3 Counting Apply the fundamental counting principle
COUNTING AND PROBABILITY
Applied Combinatorics, 4th Ed. Alan Tucker
Counting I: Choice Trees and Correspondences
Presentation transcript:

Applied Combinatorics, 4th Ed. Alan Tucker Section 5.1 Two Basic Counting Principles Prepared by Michele Fretta and Sarah Walker 4/17/2017 Tucker, Sec. 5.1

Introduction We will be using two basic counting principles to solve a few combinatorial word problems. The counting principles are simple, but powerful and easy to misuse! Remember, these problems will often require logical reasoning, clever insights, and mathematical modeling. 4/17/2017 Tucker, Sec. 5.1

The Addition Principle 4/17/2017 Tucker, Sec. 5.1

A Visualization of the Addition Principle How many ways are there to choose 1 shape? Choose from 3 red, 2 green, and 4 blue. 4/17/2017 Tucker, Sec. 5.1

The Multiplication Principle 4/17/2017 Tucker, Sec. 5.1

A Visualization of the Multiplication Principle How many ways are there to choose 1 shape of each color? First stage: 3 possible outcomes Second stage: 3 possible outcomes Third stage: 3 possible outcomes 4/17/2017 Tucker, Sec. 5.1

Example 1: Adding Sets of Students A professor has 40 students in his algebra class and 40 students in his geometry class. How many different students are in these two classes? Assuming that no students are in both classes, the obvious answer is 80 students. 4/17/2017 Tucker, Sec. 5.1

Example 1 (continued) Now suppose 10 students are in both classes. To obtain disjoint sets, we categorize the students as follows: Just in algebra Just in geometry In both classes 30 10 30 Since 10 students are in both classes, there are 40 – 10 = 30 students in just algebra and 30 in just geometry. The total number of students is then 30 + 30 + 10 = 70. 4/17/2017 Tucker, Sec. 5.1

Example 2: Rolling Dice Note: “Independent” means that what we roll on the first die does not influence what we roll on the second. 4/17/2017 Tucker, Sec. 5.1

Example 2 (continued) Recall: Probability = desired outcomes total outcomes 4/17/2017 Tucker, Sec. 5.1

Example 3: Arranging Books There are 5 different Spanish books, 6 different French books, 8 different Transylvanian books. How many different ways are there to pick an (unordered) pair of two books not in the same language? 4/17/2017 Tucker, Sec. 5.1

Example 3 (continued) There are 3 types of selections, each of which requires successive selections; use the Multiplication Principle: 1 Spanish and 1 French 5 6 = 30 1 Spanish and 1 Transylvanian 5 8 = 40 1 French and 1 Transylvanian 6 8 = 48 These 3 types of selections are disjoint, so now use the Addition Principle: 30 + 40 + 48 = 118. 4/17/2017 Tucker, Sec. 5.1

Example 4: Sequences of Letters How many ways are there to obtain a three-letter sequence using the letters a, b, c, d, e, f: with repetition of letters allowed? without repetition of any letter? without repetition and containing the letter e? with repetition and containing e? 4/17/2017 Tucker, Sec. 5.1

Example 4 (continued) Repetition allowed: With repetition we have six letter choices for each letter in the sequence. So there are 6 6 6 = 216 three-letter sequences. 4/17/2017 Tucker, Sec. 5.1

Example 4 (continued) Without any repetition: Without repetition we have six choices for the first letter, 5 for the second and 4 for the third, so there are 6 5 4 = 120 three-letter sequences. 4/17/2017 Tucker, Sec. 5.1

Example 4 (continued) Without repetition and containing the letter e: It can be helpful to make a diagram showing the positions in a sequence. Since the sequence must contain e, there are three choices for which position in the sequence is e, as is shown in the following three diagrams: e 4/17/2017 Tucker, Sec. 5.1

three-letter sequences with e. Example 4 (continued) In each diagram, there are 5 letter choices (all of the letters except e) for the first open position, which leaves 4 letter choices remaining for the last open position. So, we get 4 5 = 60 three-letter sequences with e. e 4/17/2017 Tucker, Sec. 5.1

Example 4 (continued) With repetition and containing the letter e: Start with approach used in c), but this time, repetition is allowed. For any of the three choices for e’s position, there are six letter choices for each of the other two positions, which would mean that there are 6 6 = 36 choices for the other two positions. But the answer of 3 36 = 108 is incorrect. 4/17/2017 Tucker, Sec. 5.1

Example 4 (continued) e c e The problem is that some sequences were counted more than once using the previous method. Consider this sequence: It was generated twice using our previous method: once when e was put in the first position and followed by ce as one of the 36 choices for the latter two positions, and once when e was put in the third position with ec in the first two positions. e c e 4/17/2017 Tucker, Sec. 5.1

Example 4 (continued) We must use an approach that breaks up the problem into parts. First suppose the first e is in the first position: Thus, there are six choices for the second and third positions: (6 6) ways. Next, suppose the first e is in the second position: Then there are 5 choices for the first position and six choices for the last position (5 6). Finally, let the first (and only) e be in the last position: Then there are 5 choices for each of the two first positions (5 5). Our final answer is (6 6) + (5 6) + (5 5) = 91 e e no e e no e no e 4/17/2017 Tucker, Sec. 5.1

Example 5: Nonempty Collections How many nonempty different collections can formed from five (identical) apples and eight (identical) grapefruits? 4/17/2017 Tucker, Sec. 5.1

Example 5 (continued) The number of apples and the number of grapefruits will be different in different collections. We can characterize any collections by a pair for integers (a,g), where a is the number of apples and g is the number of grapefruits. There are 6 possible values for a and 9 possible values for g. Together there are 9 6 = 54. Since the problem asked for non-empty collections and one of the solutions is (0,0), the desired answer is 54 – 1 = 53. 4/17/2017 Tucker, Sec. 5.1

Advice Try writing down in a systematic way some of the possible outcomes you want to enumerate. Think of your list as part of a particular subcase. Ask yourself how many outcomes would your list need to complete that subcase. Figure out what other subcases need to be counted. 4/17/2017 Tucker, Sec. 5.1

Summary We must find a way to recast the constraints on the problem so that some combination of the addition and multiplication principles can be applied. To use these principles, we must break the problem into pieces or stages, and be sure that the outcomes in the different pieces are distinct. 4/17/2017 Tucker, Sec. 5.1

Example for the class to try: How many ways are there to pick a man and a woman who are not husband and wife from a group of n married couples? Answer: There are n men and n women. There are n choices for the first person, and n-1 choices for the second person (so as not to include the first person’s spouse): n(n-1) 4/17/2017 Tucker, Sec. 5.1