Counting Basics: Be careful of the boundary conditions Try to come up with a general rule.

Slides:



Advertisements
Similar presentations
9.5 Counting Subsets of a Set: Combinations
Advertisements

4/16/2015 MATH 224 – Discrete Mathematics Counting Basic counting techniques are important in many aspects of computer science. For example, consider the.
Probability Three basic types of probability: Probability as counting
Permutations and Combinations
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.
12-1 and 12-2 Permutations and Combinations Get out that calculator!!
Combinations, Permutations, and the Fundamental Counting Principle.
Lesson  In this investigation you will explore the predictability of random outcomes. You will use a familiar random process, the flip of a coin.
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.
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
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.
Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department.
Chapter 2 Section 2.4 Permutations and Combinations.
Combinations We should use permutation where order matters
Counting Elements in a List How many integers in the list from 1 to 10? How many integers in the list from m to n? (assuming m
Counting Techniques The Fundamental Rule of Counting (the mn Rule); Permutations; and Combinations.
Venn Diagrams Lesson
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Probability Lesson: PR-4 Fundamental Counting Principle Fundamental Counting Principle Learning.
Section 2: The Multiplication Rule Consider the game of tossing a coin, then rolling a die, then picking a card. One possible event would be (H, 2, 2clubs).
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
Finding Probability Using Tree Diagrams and Outcome Tables
Slide Slide 1 Created by Tom Wegleitner, Centreville, Virginia Edited by Olga Pilipets, San Diego, California Counting.
Permutations, Combinations, and Counting Theory AII.12 The student will compute and distinguish between permutations and combinations and use technology.
Probability Chapter 3. § 3.4 Counting Principles.
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’
Statistics 1: Elementary Statistics Section 4-7. Probability Chapter 3 –Section 2: Fundamentals –Section 3: Addition Rule –Section 4: Multiplication Rule.
March 10,  Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound.
Counting Methods Review General Guidelines. Fundamental Counting Principle Each category outcome is independent of any other category outcome OR Items.
Copyright © 2010 Pearson Education, Inc. Chapter 6 Probability.
summer term mathematics activities for year six
 To apply some rule and product rule in solving problems.  To apply the principles of counting in solving problems.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 5 Section 2 – Slide 1 of 21 Chapter 5 Section 2 The Addition Rule and Complements.
Unit VI Discrete Structures Permutations and Combinations SE (Comp.Engg.)
12.3 Factorial & Fundamental Counting Principles.
Permutations, Combinations, and Counting Theory
Section 4.5-Counting Rules
Students in a grade 7 class were raising money for charity. Some students had a “bowl-a-thon”. This table shows the money that one student raised for.
Honors Analysis.  Independent Events: Events that do not affect each other  Sample Space: List of all possible outcomes  Fundamental Counting Principle:
Counting Techniques Tree Diagram Multiplication Rule Permutations Combinations.
Section 6.2: Probability Models Ways to show a sample space of outcomes of multiple actions/tasks: (example: flipping a coin and rolling a 6 sided die)
HAWKES LEARNING Students Count. Success Matters. Copyright © 2015 by Hawkes Learning/Quant Systems, Inc. All rights reserved. Section 7.2 Counting Our.
 Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound events  Independent.
© 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.
Permutations 7.2 Chapter 7 Combinatorics 7.2.1
Week 9 - Friday.  What did we talk about last time?  Partial orders  Total orders  Basic probability  Event  Sample space  Monty Hall  Multiplication.
The Fundamental Counting Principle and Permutations 18.0 Students use fundamental counting principles to compute combinations and permutations Students.
COMBINATORICS AND PROBABILITY T BOLAN menu. MENU COMBINATORICS: BASICS COMBINATION / PERMUTATION PERMUTATIONS with REPETITION BINOMIAL THEOREM (light)
11.1 Factorial & Fundamental Counting Principles.
summer term mathematics activities for year six
Counting Methods and Probability Theory
Permutations 10.5 Notes.
Permutations 7.2 Chapter 7 Combinatorics 7.2.1
ALGEBRA II H/G - SETS : UNION and INTERSECTION
COUNTING AND PROBABILITY
Probability.
8.3 Counting Apply the fundamental counting principle
8th Grade Chapter 12 Data Analysis and Probability
15.1 Venn Diagrams.
ALGEBRA I - SETS : UNION and INTERSECTION
Chapter 10 Counting Methods 2012 Pearson Education, Inc.
ALGEBRA II H/G - SETS : UNION and INTERSECTION
Probability By Mya Vaughan.
Chapter 10 Counting Methods.
Counting Methods and Probability Theory
Counting Principle.
Exercise How many different lunches can be made by choosing one of four sandwiches, one of three fruits, and one of two desserts? 24.
SPCR.1a – Lesson A Levels 1 – 3 Describe events as subsets of a sample space and use Venn diagrams to represent intersections, unions, and complements.
Presentation transcript:

Counting Basics: Be careful of the boundary conditions Try to come up with a general rule

Example #1 How many integers are less than 600 but greater than 500? Be careful of the boundary, not to include 500 nor 600. Answer: 599 – 500 = 99

Example #2 Jim has a yard that is 60 yard long and 30 yard wide. If he places a host at each corner and places other posts three yards apart along the edge. How many posts are placed surrounding the yard? Be careful not to over count corner posts Set the pattern: each line with one corner

1*3, 2*3, …10x3; total 10 posts 10 posts 1*3, 2*3, …, 20*3; total 20 posts 20 posts Answer: = 60 posts

Venn Diagrams Useful when counting among categories that may have overlapping entries Working from inside-out helps

Example #3 At a party gathering, 19 person have a brother, 15 person have a sister, 7 person have both a brother and a sister, and 6 person don't have any siblings at all. How many person are at the party? Recognizing there are 2 categories: having a brother, having a sister. Draw the Venn diagrams accordingly.

Answer: = 33 Only have a brother: 19 – 7 = 12 Only have a sister: 15 – 7 = 8 Have no brother nor sister: 6 Have both brother & sister: 7

Example #4 Every student in a classroom has at least one pet. 30 have a cat, 28 have a dog, and 26 have fish. If 13 students have fist and a cat, 15 students have fish and a dog, 11 students have both a cat and a dog, and 4 students have a cat, a dog, and fish. How many students in the classroom? Recognizing there are 3 categories: have a cat, have a dog, or have fish. Draw the Venn diagrams accordingly.

Answer: = – 4 = 7 13 – 4 = 9 15 – 4 = 11 Dog only: 30–7–4–11 = 8 Cat only: = 8 Fish only: 26 –4–9–11 = 2

Example #5 How many of the smallest 1000 positive integers are divisible by 5, 6, or 7? Recognizing there are 3 categories: div by 5, div by 6, div by 7. Draw the Venn diagrams accordingly.

Answer: (div-by-5: 200) + (div-by-6: 166) + (div-by-7: 142) - (div-by-5&6: 33) - (div-by-5&7: 28) - (div-by-6&7: 23) + (div-by-5&6&7: 4) 4 Div by 5&6: 33 div by 6&7: 23 div by 5&7: 28 Div by 5 only Div by 6 only Div by 7 only = – 33 – 28 – = 428

Bowling pins and handshakes How many pins in the diagram? Answer: = 10 What about: … = ?

Example #6: … = ? Assume S = … we can also write S = … + 1 pair them as shown in circles, we got: 2 * S = 101 * 100 Thus S = 101 * 1000 / 2 = 5050

Fundamental counting principle If there are m ways that one event can happen, and n ways a second event can happen, then there are m*n ways that both events can happen.

Example #7 How many 10 digit whole numbers use only the digits 1 and 0? Note that the first digit can’t be 0, and all other digits have 2 choices. Answer: 1 * 2 9 = 512

Example #8 How many squares can be formed by 4 of the dots in the unit grid as vertices? Keeping organized. Recognize all possible category

Example #8 # of unit square: 9 # of 2x2 square: 4 # of 3x3 square: 1 # of 2x2 diagonal square: 2 Answer: = 20 # of 1x1 diagonal square: 4

Factorials and permutations n ! = n * (n – 1) * (n – 2 ) … * 2 * 1 Example: How many different "words" can be formed by re-arranging the letters in the word "COUNT"? Answer: 5! = 5 * 4 * 3 * 2 * 1 = 120

Example # 9 How many different 8 letter "words" can be formed by re-arranging the letters in the word "GEEEETRY"? Think of E 1 and E 2 as two different characters first, we got total # of words: 8! Then remove the duplicates, we get the answer: 8! / 2 = 20160

Permutation with restrictions How many even five digit numbers contains each of the digits 1 through 5? Working from the last digit, we got: answer = 2 * 4 * 3 * 2 * 1 = 48

Combinations Permutation where the sequence of the elements doesn’t count. Can be calculated by removing the repeated ones from the permutation result. Combination = (permutation of the whole set) / (permutation of the selected set)

Example #10 Remy wants to drink 3 different sodas from a list of 8 sodas. How many different soda combinations he can choose to drink? Permutation of the whole set: 8 * 7 * 6 Permutation of selected set: 3 * 2 * 1 # of combinations: (8 * 7 * 6) / (3 * 2 * 1) Answer: 56

Example #11 Tracing the lines starting from A on the unit grid below, how many distinct 7-unit paths are there from A to B?

Example #11 Must move 3 Up-moves in seven moves, and 4 Right moves in seven moves. Thus the question becomes: How many ways to put 4 Rs in 7 slots. Ways to put 4 Rs in 7 slots: 7 * 6 * 5 * 4 ; divide by the repeated ones: 4 * 3 * 2 * 1, we got the answer: 7*6*5*4 / (4*3*2*1) = 35

Complementary counting Total # of desired = total # - the # that we don’t want (Hint: use this strategy if the desired set is a union of different sets)

Example #11 Paul flits a fair coin eight times. In how many ways can he flip at least two heads? Total count: 2 8 ; Count for no head: 1 Count for 1 head: 8 Use complementary counting, the answer is: 2 8 – 1 – 8 = 247