Basic counting principles, day 1 To decide how many ways something can occur, you can draw a tree diagram. Note that this only shows half of the tree –

Slides:



Advertisements
Similar presentations
4/16/2015 MATH 224 – Discrete Mathematics Counting Basic counting techniques are important in many aspects of computer science. For example, consider the.
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.
MATHPOWER TM 12, WESTERN EDITION Chapter 7 Combinatorics.
Counting Principles The Fundamental Counting Principle: If one event can occur m ways and another can occur n ways, then the number of ways the events.
PERMUTATIONS AND COMBINATIONS M408 – Probability Unit.
Today Today: Reading: –Read Chapter 1 by next Tuesday –Suggested problems (not to be handed in): 1.1, 1.2, 1.8, 1.10, 1.16, 1.20, 1.24, 1.28.
Counting Principles. I. Basic Counting Problem  Say that I have a jar with 7 balls in it numbered 1 through 7. How many ways can 10 be made (by addition.
Chapter 2 Section 2.4 Permutations and Combinations.
Combinatorics Chapter 3 Section 3.3 Permutations Finite Mathematics – Stall.
Counting principle and permutations
Counting Principles and Probability Digital Lesson.
Counting and Probability Sets and Counting Permutations & Combinations Probability.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Conditional Probabilities Multiplication Rule Independence.
Do Now: Make a tree diagram that shows the number of different objects that can be created. T-shirts: Sizes: S, M, L and T-shirts: Sizes: S, M, L and Type:
Probability Review and Counting Fundamentals Ginger Holmes Rowell, Middle TN State University Tracy Goodson-Espy and M. Leigh Lunsford, University of AL,
(13 – 1) The Counting Principle and Permutations Learning targets: To use the fundamental counting principle to count the number of ways an event can happen.
T—05/26/09—HW #71: Pg 713: ; Pg 719: 12, 13, ; Pg 734: ; Pg 742: 10 – 13 52) ) ) perm, 21058) comb, ).524) e: 13/60,
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
Chapter 12 Section 8 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Finding Probability Using Tree Diagrams and Outcome Tables
Bell work An Internet code consists of one digit followed by two letters. The number 0 and the letter “O” are excluded. How many different codes are possible?
Counting Principles. What you will learn: Solve simple counting problems Use the Fundamental Counting Principle to solve counting problems Use permutations.
Counting Techniques 0.4.
Chapter 5: Introduction to Probability 5.3 Counting and theoretical probabilities: How many? 1 Learning Objectives:  Learn how to count outcomes without.
Sports Camp Morning Camp AerobicsRunningYogaSwimmingWeights Afternoon Camp HikingTennisVolleyballSoftball List all the possible choices available on your.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Methods of Counting Outcomes BUSA 2100, Section 4.1.
Section 2.6: Probability and Expectation Practice HW (not to hand in) From Barr Text p. 130 # 1, 2, 4-12.
Warm Up Evaluate  4  3  2   6  5  4  3  2 
Permutations, Combinations, and Counting Theory AII.12 The student will compute and distinguish between permutations and combinations and use technology.
Quiz 10-1, Which of these are an example of a “descrete” set of data? 2.Make a “tree diagram” showing all the ways the letters ‘x’, ‘y’, and ‘z’
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.
Sullivan Algebra and Trigonometry: Section 14.2 Objectives of this Section Solve Counting Problems Using the Multiplication Principle Solve Counting Problems.
Quiz Plot the point: (-4, 2, -3) in the Cartesian space. Find the midpoint between the 2 points: P(1, 5, -7) and Q(-5, 3, -3) 3. Find the distance.
Probability Basic Concepts Start with the Monty Hall puzzle
Unit VI Discrete Structures Permutations and Combinations SE (Comp.Engg.)
ProbabilityProbability Counting Outcomes and Theoretical Probability.
Permutations, Combinations, and Counting Theory
Counting Principles Multiplication rule Permutations Combinations.
6.7 Permutations & Combinations. Factorial: 4! = 4*3*2*1 On calculator: math ==> PRB ==> 4 7! = 5040 Try 12!
11.1A Fundamental Counting Principal and Factorial Notation 11.1A Fundamental Counting Principal If a task is made up of multiple operations (activities.
MATH 2311 Section 2.1. Counting Techniques Combinatorics is the study of the number of ways a set of objects can be arranged, combined, or chosen; or.
HAWKES LEARNING Students Count. Success Matters. Copyright © 2015 by Hawkes Learning/Quant Systems, Inc. All rights reserved. Section 7.2 Counting Our.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 11 Counting Methods and Probability Theory.
Algebra-2 Counting and Probability. Quiz 10-1, Which of these are an example of a “descrete” set of data? 2.Make a “tree diagram” showing all.
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.
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.
Warm Up Evaluate  4  3  2   6  5  4  3  2 
Quiz: Draw the unit circle: Include: (1)All “nice” angles in degrees (2) All “nice” angles in radians (3) The (x, y) pairs for each point on the unit circle.
Permutations and Combinations. Fundamental Counting Principle If there are r ways of performing one operation, s ways of performing a second operation,
10.1 Applying the Counting Principle and Permutations.
Chapter 10 Counting Methods.
MATH 2311 Section 2.1.
Counting Methods and Probability Theory
COCS DISCRETE STRUCTURES
1. In how many ways can six people sit in a six-passenger car?
BASIC PROBABILITY Probability – the chance of something (an event) happening # of successful outcomes # of possible outcomes All probability answers must.
Mutually Exclusive and Inclusive Events
8th Grade Chapter 12 Data Analysis and Probability
Counting, Permutations, & Combinations
Basic Counting Lecture 9: Nov 5, 6.
MATH 2311 Section 2.1.
Counting Methods and Probability Theory
Chapter 10 Counting Methods.
Section 6.4 Counting and Combinations with Multiple Cases
Chapter 10 Counting Methods 2012 Pearson Education, Inc.
Probability Review Day 1
{ a } { a, b } { a, b, c } { a, c } { b } 8 subsets. { b, c } { c }
MATH 2311 Section 2.1.
Presentation transcript:

Basic counting principles, day 1 To decide how many ways something can occur, you can draw a tree diagram. Note that this only shows half of the tree – the automatic transmission

Possible choices = 2 * 3 * 4 = 24 choices transmission * music * color Possible choices = 2 * 3 * 4 = 24 choices transmission * music * color Basic counting principle: If an event can occur in p ways, and another event in q ways, then there are p * q ways both events can occur. Basic counting principle: If an event can occur in p ways, and another event in q ways, then there are p * q ways both events can occur. From now on we will use multiplication and “fill the slots” as follows. From now on we will use multiplication and “fill the slots” as follows.

How many different batting orders are there in a 9- person softball team? Fill the slots for each position 1 st batter 2 nd batter 3 rd batter 4 th batter 5 th batter 6 th batter 7 th batter 8 th batter 9 th batter

9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 = 9 ! 1 st batter 2 nd batter 3 rd batter 4 th batter 5 batter 6 th batter 7 th batter 8 th batter 9 th batter 9 ways to choose first batter 8 ways left, once 1st batter chosen 7 ways now to chose 3rd batter Etc. 9! = 362,880 ways to write the batting order.

How many 7 digit phone numbers are there if the first digit cannot be 0 or 1? ____*____*___* ____*____*____*____ ____*____*___* ____*____*____*____

8*10* * * * * # choices for first digit # choices for second digit # choices for all other digits will be the same 8,000,000 ways

How many 7-digit phone numbers begin with 867? ____*____ *____*____*____*____*____ ____*____ *____*____*____*____*____

one choice these four digits can be 0-9 (10 choices) 1 * 1 * 1 * 10 * 10 * 10 * 10 10,000 different phone numbers

Using letters from the word “MATRIX” How many 4-letter patterns can be formed? How many 4-letter patterns can be formed? # ways to fill slots: _____ * _____ * _____ * _____ _____ * _____ * _____ * _____

6 letters to choose from 5 letters left.. etc. # ways to fill slots: 6 * 5 * 4 * 3 = 360

Still using letters from the word “MATRIX”, what if the first letter must be a vowel? _____ * _____ * _____ * _____ _____ * _____ * _____ * _____

2 vowels to choose from 5 letters left.. etc. # ways to fill slots: 2 * 5 * 4 * 3 = 120

What if we fill only 4 slots and the first and last letters must be consonants? ______ * ______ * ______ * ______

4 conso- nents to choose from 4 letters left.. 3 conso- nents left to choose from 3 letters left.. # ways to fill slots: 4 * 4 * 3 * 3 = 144 fill these two first fill less important slots last

How many 3-digit palindromes are possible? Note that a number does not usually begin with a zero... ______ * ______ * ______

Can’t begin with a zero and be 3- digit must be the same as the first digit (one way to fill) can be any digit 9 * 10 * 1 = 90 fill first fill second then fill the last one

In a 5-card poker hand, the 1 st 3 cards were red face cards, the last 2 were black non- face cards. How many ways can this happen? 5 slots to fill: _____ * ____ * _____ * _____* _____ _____ * ____ * _____ * _____* _____

first 3 cards choices: K, Q, J hearts or diamonds; 1 st slot, 2 nd slot, 3 rd slot A – 10 and black: 20 cards; 1 st slot, 2 nd slot (of that type) 6 * 5 * 4 * 20 * 19 = 45,600 ways

Mutually Exclusive events To get to school, Rita can either walk or ride the bus. If she walks, she can take 3 routes, if she rides the bus, there are 2 routes. Rita’s choices are mutually exclusive - she can’t do both, therefore, the possibilities are added to each other. To get to school, Rita can either walk or ride the bus. If she walks, she can take 3 routes, if she rides the bus, there are 2 routes. Rita’s choices are mutually exclusive - she can’t do both, therefore, the possibilities are added to each other. 3 ways to walk 3 ways to walk 2 ways to take a bus 2 ways to take a bus total possible routes: = 5 total possible routes: = 5

How many odd numbers between 10 and 1000 start and end with the same digit? We have two mutually exclusive events: ___ * ___ two digit choices + ___ * ___ * ___ three digit choices

two digit choices: just count multiples of 11 that are odd: (11, 33, 55, 77, 99) 5 choices three digit choices: calculate like our palindrome problem (3 slots to fill) 1 * 10 * 5 50 choices total = = 55 odd numbers between 10 and 1000 that have the same first and last digit.

An example that is not mutually exclusive… (each time you have the same number of choices) An ID label has 4 letters. How many different labels are possible? ____ * _____ * _____ * _____ ____ * _____ * _____ * _____

From before, we know it is From before, we know it is 26* 26 * 26 *26= 26 4 = 456,976 26* 26 * 26 *26= 26 4 = 456,976 You can also look at it like: You can also look at it like: 26 4 where 26 (base) = number of different choices 4 (exponent) = number of times you make that choice

On a multiple choice test with 15 questions and 4 answer choices per question, how many answer combinations are there? On a multiple choice test with 15 questions and 4 answer choices per question, how many answer combinations are there? 4 15 =1,073,741,824!!!! 4 15 =1,073,741,824!!!! 4 = number of different choices 15 = number of times you make that choice

How many license plates of 2 symbols (letters and digits) can be made using at least one letter in each? How many license plates of 2 symbols (letters and digits) can be made using at least one letter in each? cases: cases: one letter: L D or D L 2(26*10) one letter: L D or D L 2(26*10) two letters: two letters: L L 26 2 L L 26 2 total: 2(26*10) = 1196 license plates total: 2(26*10) = 1196 license plates

How many ways can you make a 3 symbol license plate using at least one letter? What are the cases? What are the cases?

Cases if the license plate has at least one letter: Cases if the license plate has at least one letter: one letter: one letter: LDD or DLD or DDL3(26*10 2 ) LDD or DLD or DDL3(26*10 2 ) two letters: + two letters: + L L D or L D L or D L L 3(26 2 *10) L L D or L D L or D L L 3(26 2 *10) three letters: + three letters: + L L L 26 3 L L L 26 3

Permutations A permutation is an ordered arrangement: ORDER MATTERS (KAT is different than TAK). Our batting order problem and use of the letters of matrix have been permutations. A permutation is an ordered arrangement: ORDER MATTERS (KAT is different than TAK). Our batting order problem and use of the letters of matrix have been permutations.

How many ways can letters in SPRING be arranged? How many ways can letters in SPRING be arranged? 6 * 5 * 4 * 3 * 2 * 1 = 6! = 720 ways to arrange the 6 letters when order matters. 6 * 5 * 4 * 3 * 2 * 1 = 6! = 720 ways to arrange the 6 letters when order matters. In general, there are n! permutations of n objects. In general, there are n! permutations of n objects.

What if we want to use the letters in SPRING, but only want to know how many 2 letter arrangements can be made? What if we want to use the letters in SPRING, but only want to know how many 2 letter arrangements can be made? Using the “filling the slots” idea, we have Using the “filling the slots” idea, we have 6 * 5 = 30 ways to fill two slots with 6 letter choices. 6 * 5 = 30 ways to fill two slots with 6 letter choices.

Another way to look at it is similar to what we did for Pascal’s triangle: In general, the number of permutations of n objects taken r at a time is:

From 1000 contest entries, how many ways can 1st, 2nd, and 3rd place prizes be awarded? Does order matter? We can fill in the slots: _____ * _____ * _____ _____ * _____ * _____ Or use our formula:

How does it change if the values are not all unique? How many 6-letter permutations of ACOSTA are there? note: there are two A’s that will not be distinguishable from each other in a word. A 1 A 2 COST = A 2 A 1 COST the number of permutations will be cut in half.

Is the bottom just “2” because there are 2 A’s? What if there were more? Consider using the letters of PARABOLA:

Consider PARABOLA the number of arrangements of the 3 A’s that will be equivalent are: A 1 A 2 A 3 PRBOL A 1 A 3 A 2 PRBOL A 2 A 1 A 3 PRBOL A 2 A 1 A 3 PRBOL A 2 A 3 A 1 PRBOL A 3 A 1 A 2 PRBOL A 3 A 2 A 1 PRBOL This shows that 3! arrangements would be identical (the number of ways you can arrange 3 objects in different order). Thus, we need to divide by 3!, not just 3.

This generalizes to objects that have more than one duplicate. If all objects are used, the number of permutations of n objects of which p and q represent the number of items that are alike is:

How many permutations of the letters in the word POSSIBILITY using only 5 letters are there?

where the denominator represents the 2 S’s and the 3 I’s.

That’s all folks Have a counting, permutable kind of day