The Addition & Multiplication Principles. The Addition Principle If {S 1, S 2,..., S n } is a partition of S, then |S| = |S 1 | + |S 2 | +... + |S n |.

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
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
Section 4.1: The Basics of Counting As we have seen, one way to count the number of objects in a finite set S is to produce a one-to-one correspondence.
Randomness and Probability
MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
Independence and the Multiplication Rule
Great Theoretical Ideas in Computer Science.
Chapter 7 Probability 7.1 Experiments, Sample Spaces, and Events
Section 16.1: Basic Principles of Probability
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
Discrete Structures & Algorithms Counting Counting I: One-To-One Correspondence and Choice Trees.
4.2 Probability Models. We call a phenomenon random if individual outcomes are uncertain but there is nonetheless a regular distribution of outcomes in.
Counting Tools ● Enumeration ● Multiplication ● Addition ● Negation.
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.
Lecture 14: Oct 28 Inclusion-Exclusion Principle.
Copyright © Zeph Grunschlag, Counting Techniques Zeph Grunschlag.
Counting I: One To One Correspondence and Choice Trees Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 9Feb 10,
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
Combinatorics Chapter 3 Section 3.1 Trees and Equally Likely Outcomes Finite Mathematics – Stall.
The Basics of Counting: Selected Exercises. Copyright © Peter Cappello2 Sum Rule Example There are 3 sizes of pink shirts & 7 sizes of blue shirts. How.
VOCABULARY  Deck or pack  Suit  Hearts  Clubs  Diamonds  Spades  Dealer  Shuffle  Pick up  Rank  Draw  Set  Joker  Jack 
Counting principle and permutations
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.
Department Store A department store is divided into two sections, electronics and furniture. Each section offers a discount rate; items in the same section.
Chapter 1 Fundamental principles of counting 陳彥良 中央大學資管系.
Counting and Probability Sets and Counting Permutations & Combinations Probability.
PSSA Jeopardy Probability Combination Mean Circle Graphs Line Graphs $100 $200 $300 $400.
Some lovely and slightly random facts… Give the number of objects described. 1. The number of cards in a standard deck The number of cards of each.
X of Z: MAJOR LEAGUE BASEBALL ATTENDANCE Rather than solving for z score first, we may be given a percentage, then we find the z score, then we find the.
Introduction to Counting Discrete Structures. A Multiplication Principle.
Finding Probability Using Tree Diagrams and Outcome Tables
Basic Counting. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations, combinations.
EXIT NEXT Click one of the buttons below or press the enter key BACKTOPICSProbability Mayeen Uddin Khandaker Mayeen Uddin Khandaker Ph.D. Student Ph.D.
Copyright © Ed2Net Learning Inc.1. 2 Warm Up Use the Counting principle to find the total number of outcomes in each situation 1. Choosing a car from.
Chapter 4 Matrices By: Matt Raimondi.
Introduction to Counting Methods MATH 102 Contemporary Math S. Rook.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
You probability wonder what we’re going to do next!
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’
1 CSC 321: Data Structures Fall 2013 Counting and problem solving  mappings, bijection rule  sequences, product rule, sum rule  generalized product.
EXIT NEXT Click one of the buttons below or press the enter key BACKTOPICS Probability The MEnTe Program Math Enrichment through Technology Title V East.
March 10,  Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound.
Rules of Probability. Recall: Axioms of Probability 1. P[E] ≥ P[S] = 1 3. Property 3 is called the additive rule for probability if E i ∩ E j =
The Product Rule: Use & Misuse. Copyright © Peter Cappello The Product Rule If a procedure has 1.A 1 st stage with s 1 outcomes 2.A 2 nd stage with.
© 2010 Pearson Education, Inc. All rights reserved Chapter 9 9 Probability.
Probability Rules In the following sections, we will transition from looking at the probability of one event to the probability of multiple events (compound.
BACK to the BASICS Roll ‘Em COUNT Me In Multiplier?Grab.
CompSci 102 Discrete Math for Computer Science March 20, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
Discrete Mathematics, 1st Edition Kevin Ferland Chapter 6 Basic Counting 1.
Counting I: One To One Correspondence and Choice Trees Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 9Feb 10,
 Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound events  Independent.
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.
Warm Up: Quick Write Which is more likely, flipping exactly 3 heads in 10 coin flips or flipping exactly 4 heads in 5 coin flips ?
Counting I: One To One Correspondence and Choice Trees Great Theoretical Ideas In Computer Science John LaffertyCS Fall 2005 Lecture 6Sept 15,
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.
Chance We will base on the frequency theory to study chances (or probability).
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 & Combinations: Selected Exercises. Copyright © Peter Cappello2 Preliminaries Denote the # of arrangements of some k elements of a set of.
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
1 What Is Probability?. 2 To discuss probability, let’s begin by defining some terms. An experiment is a process, such as tossing a coin, that gives definite.
Essential Ideas for The Nature of Probability
CSC 321: Data Structures Fall 2015 Counting and problem solving
Chapter 10 Counting Methods.
COCS DISCRETE STRUCTURES
What is Probability? Quantification of uncertainty.
Probability of Independent Events
Basic Counting.
Combination and Permutations Quiz!
Presentation transcript:

The Addition & Multiplication Principles

The Addition Principle If {S 1, S 2,..., S n } is a partition of S, then |S| = |S 1 | + |S 2 | |S n |. Example: Let {S 1, S 2 } be a partition of S; |S 1 | = |S 2 | = 40. Then |S| = = 80

When A & B are not Disjoint {A - B, A  B, B - A} partition A  B: Every element is in exactly 1 part. Let |A-B| = 30, |A  B| = 10, & |B-A| = 30. |A  B| = |A - B| + |A  B| + |B - A| = = 70 10

Example In how many ways can we draw a heart or a spade from an ordinary deck of cards? A heart or an ace?

In how many ways can we get a sum of 4 or 8 when 2 distinguishable dice (say 1 is red, 1 blue) are rolled? Model “distinguishable” as an ordered pair. What about when the dice are indistinguishable? Model “indistinguishable” as a set.

The Product Rule Let S 1, S 2,..., S n be nonempty sets. | S 1  S 2 ...  S n | = | S 1 |  |S 2 | ...  |S n |. a b c (a,0)(a,1) (b,0)(b,1) (c,0)(c,1) S 1 = {a, b, c}; S 2 = {0, 1}

Think of the product rule as creating a composite object in stages S 1, S 2,..., S n. Then there are | S 1 |  |S 2 | ...  |S n | different composite objects. If 2 distinct dice are rolled, how many outcomes are there? If 100 distinct dice are rolled, how many outcomes are there?

Example Suppose the CCS tee shirt comes in 3 colors, and 4 sizes. How many different kinds of CCS tee shirts are there? How many 3-digit numbers can be formed from the digits {1, 2, 3, 4, 5, 6, 7, 8, 9}? How many 3-digit numbers can be formed from the above set when no digit can be repeated?

How many license plates can be formed from 3 letters followed by 4 digits? From 1, 2, or 3 letters, followed in each case by 4 digits? From 1, 2, or 3 letters, followed in each case by 4 digits, when the 4 digits, interpreted as a number, is even?

Indirect Counting Count the elements of a set by computing the size of its complement & subtracting from size of the universe. How many nonnegative numbers < 10 9 contain the digit 1? The size of the universe is The number of nonnegative numbers < 10 9 that do not contain the digit 1 is 9 9. This includes numbers like , which is 4.

Example We draw a card from a deck & replace it before the next draw. In how many ways can 10 cards be drawn so that the 10th card matches at least 1 of the previous draws? There are unrestricted 10 card draws. There are (52)(51) 9 ways to draw 10 cards where the 10th card does not match any previous: 1st pick the 10th card; pick the other 9 from the other 51 cards.

Example 2 How many ways can 8 students be seated in a row so that a certain pair are not adjacent? There are 8! seatings without restriction. The number of ways where the pair do sit next to each other is (7)(2)6! = (2)7! Pick the position of the left seat of the pair (7); Pick the order of the pair (2); Order the other 6 people in the other 6 seats (6!).

One-to-one Correspondence 1) Note that the number of solutions to one problem is in 1-to-1 correspondence with those of another problem. 2) Count the number of solutions in the other problem (which presumably is easier). Example: To count the number of cows in a field, simply count the number of cow legs in the field and divide by 4.

Ok, a real example Suppose there are 101 players in a single elimination tennis tournament. In such a tournament, if a player loses a match, he is eliminated (i.e., shot). In every match, someone loses (no ties). The tournament proceeds in rounds. In round 1, there are 50 matches, & someone gets a bye.

In round 2, there are 25 matches, & someone gets a bye. In round 3, there are 13 matches. In round 4, there are 6 matches, and someone gets a bye. In round 5, there are 2 matches. In round 6, there is the final match.

If there are 10,975 people in the tournament, how many matches are needed? Observe that there is a 1-to-1 correspondence with matches and losers. A match eliminates 1 person from the tournament. Thus, 10, matches are needed.

Attacking a problem Devising an overall counting strategy usually is the hardest part. If it is unclear how to proceed, get concrete: Start to enumerate the possible outcomes - this usually leads to some insight as to the structure of the problem. Try a special case. For example, if the problem is in terms of a parameter, n, try to solve it for n = 2; then 3; then 4. Look for a pattern.

Characters                             