Copyright © Cengage Learning. All rights reserved. 6 Sets and Counting.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Copyright © Cengage Learning. All rights reserved.
Mathematical Preliminaries
Copyright © Cengage Learning. All rights reserved.
Slide 1 Insert your own content. Slide 2 Insert your own content.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 3.1 Chapter 3.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Chapter 40 - Physiology and Pathophysiology of Diuretic Action Copyright © 2013 Elsevier Inc. All rights reserved.
Combining Like Terms. Only combine terms that are exactly the same!! Whats the same mean? –If numbers have a variable, then you can combine only ones.
0 - 0.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
Teacher Name Class / Subject Date A:B: Write an answer here #1 Write your question Here C:D: Write an answer here.
Addition Facts
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 4.5.
Copyright © Cengage Learning. All rights reserved. 6 Sets and Counting.
9.5 Counting Subsets of a Set: Combinations
5.9 + = 10 a)3.6 b)4.1 c)5.3 Question 1: Good Answer!! Well Done!! = 10 Question 1:
Vector-Valued Functions 12 Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. 7 Probability.
HOW TO COMPARE FRACTIONS
Copyright © Cengage Learning. All rights reserved.
Applications of Inclusion-Exclusion: Selected Exercises.
Interesting Integers!.
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
Solving Absolute Value Equations Solving Absolute Value Equations
Copyright © Cengage Learning. All rights reserved.
CS1022 Computer Programming & Principles
Addition 1’s to 20.
Section 4.2 Graphing Linear Equations Using Tables
Graphical Analysis of Motion
Introduction to Limits
The Fundamental Theorem of Algebra
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Trigonometric Functions of Any Angle
Permutations and Combinations
AE1APS Algorithmic Problem Solving John Drake
Week 1.
Let’s take a 15 minute break Please be back on time.
3 Systems of Linear Equations and Matrices
Copyright © Cengage Learning. All rights reserved.
Lecture 15 Functions CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Bottoms Up Factoring. Start with the X-box 3-9 Product Sum
Copyright © Cengage Learning. All rights reserved.
1 Functions and Applications
Foundations of Data Structures Practical Session #11 Sort properties, Quicksort algorithm.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. 6 Sets and Counting.
Copyright © Cengage Learning. All rights reserved. 7 Probability.
COUNTING TECHNIQUES PERMUTATIONS AND COMBINATIONS.
Great Theoretical Ideas in Computer Science.
Discrete Structures & Algorithms Counting Counting I: One-To-One Correspondence and Choice Trees.
Counting I: One To One Correspondence and Choice Trees Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 9Feb 10,
COUNTING TECHNIQUES PERMUTATIONS AND COMBINATIONS.
6-7 Permutations & Combinations M11.E.3.2.1: Determine the number of permutations and/or combinations or apply the fundamental counting principle.
Counting Principles and Probability Digital Lesson.
Lesson 7-1. Warm-up You are at a restaurant with a special for $10. You have the option to get: a) an appetizer and an entree or b) an entree and a dessert.
Lesson # 64 – 65 Notes Permutations and Combinations 1.The Counting Principle – The number of outcomes for an event is the product of the number of outcomes.
Counting I: One To One Correspondence and Choice Trees Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 9Feb 10,
Counting Techniques. Multiplication Principle (also called the Fundamental Counting Principle) Combinations Permutations Number of subsets of a given.
Counting I: One To One Correspondence and Choice Trees Great Theoretical Ideas In Computer Science John LaffertyCS Fall 2005 Lecture 6Sept 15,
CS Lecture 6 How To Count Without Counting.
THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2.
Math 1320 Chapter 6: Sets and Counting 6.2 Cardinality.
addition and multiplication
4 Probability Lesson 4.7 The Multiplication Counting
Counting Discrete Mathematics.
Warm-Up Take out your Unit 1 pretest and complete question #2
Counting Methods and Probability Theory
Counting Methods and Probability Theory
Presentation transcript:

Copyright © Cengage Learning. All rights reserved. 6 Sets and Counting

Copyright © Cengage Learning. All rights reserved. 6.3 Decision Algorithms: The Addition and Multiplication Principles

3 Let’s start with a really simple example. You walk into an ice cream parlor and find that you can choose between ice cream, of which there are 15 flavors, and frozen yogurt, of which there are 5 flavors. How many different selections can you make? Clearly, you have = 20 different desserts from which to choose. Mathematically, this is an example of the formula for the cardinality of a disjoint union: If we let A be the set of ice creams you can choose from, and B the set of frozen yogurts, then A ∩ B = ∅ and we want n(A U B).

4 But the formula for the cardinality of a disjoint union is n(A U B) = n(A) + n(B), which gives = 20 in this case. This example illustrates a very useful general principle. Addition Principle When choosing among r disjoint alternatives, suppose that alternative 1 has n 1 possible outcomes, alternative 2 has n 2 possible outcomes,... alternative r has n r possible outcomes, with no two of these outcomes the same. Then there are a total of n 1 + n 2 + · · · + n r possible outcomes. Decision Algorithms: The Addition and Multiplication Principles

5 Quick Example At a restaurant you can choose among 8 chicken dishes, 10 beef dishes, 4 seafood dishes, and 12 vegetarian dishes. This gives a total of = 34 different dishes to choose from. Here is another simple example. In that ice cream parlor, not only can you choose from 15 flavors of ice cream, but you can also choose from 3 different sizes of cone. How many different ice cream cones can you select from? Decision Algorithms: The Addition and Multiplication Principles

6 This time, we want to choose both a flavor and a size, or, in other words, a pair (flavor, size). Therefore, if we let A again be the set of ice cream flavors and now let C be the set of cone sizes, the pair we want to choose is an element of A × C, the Cartesian product. To find the number of choices we have, we use the formula for the cardinality of a Cartesian product: n(A  C) = n(A)n(C). In this case, we get 15  3 = 45 different ice cream cones we can select. Decision Algorithms: The Addition and Multiplication Principles

7 This example illustrates another general principle. Multiplication Principle When making a sequence of choices with r steps, suppose that step 1 has n 1 possible outcomes step 2 has n 2 possible outcomes... step r has n r possible outcomes and that each sequence of choices results in a distinct outcome. Then there are a total of n 1  n 2  · · ·  n r possible outcomes. Decision Algorithms: The Addition and Multiplication Principles

8 Quick Example At a restaurant you can choose among 5 appetizers, 34 main dishes, and 10 desserts. This gives a total of 5  34  10 = 1,700 different meals (each including one appetizer, one main dish, and one dessert) from which you can choose. Decision Algorithms: The Addition and Multiplication Principles

9 Example 1 – Desserts You walk into an ice cream parlor and find that you can choose between ice cream, of which there are 15 flavors, and frozen yogurt, of which there are 5 flavors. In addition, you can choose among 3 different sizes of cones for your ice cream or 2 different sizes of cups for your yogurt. How many different desserts can you choose from? Solution: It helps to think about a definite procedure for deciding which dessert you will choose. Here is one we can use: Alternative 1: An ice cream cone Step 1 Choose a flavor. Step 2 Choose a size.

10 Example 1 – Solution Alternative 2: A cup of frozen yogurt Step 1 Choose a flavor. Step 2 Choose a size That is, we can choose between alternative 1 and alternative 2. If we choose alternative 1, we have a sequence of two choices to make: flavor and size. The same is true of alternative 2. cont’d

11 Example 1 – Solution We shall call a procedure in which we make a sequence of decisions a decision algorithm. Once we have a decision algorithm, we can use the addition and multiplication principles to count the number of possible outcomes. Alternative 1: An ice cream cone Step 1 Choose a flavor; 15 choices Step 2 Choose a size; 3 choices There are 15  3 = 45 possible choices in alternative 1. Multiplication Principle cont’d

12 Example 1 – Solution Alternative 2: A cup of frozen yogurt Step 1 Choose a flavor; 5 choices Step 2 Choose a size; 2 choices There are 5  2 = 10 possible choices in alternative 2. So, there are = 55 possible choices of desserts. Multiplication Principle cont’d Addition Principle

13 Decision Algorithm A decision algorithm is a procedure in which we make a sequence of decisions. We can use decision algorithms to determine the number of possible items by pretending we are designing such an item (for example, an ice-cream cone) and listing the decisions or choices we should make at each stage of the process. Decision Algorithms: The Addition and Multiplication Principles

14 Quick Example An iPod is available in two sizes. The larger size comes in two colors and the smaller size (the Mini) comes in four colors. A decision algorithm for “designing” an iPod is: Alternative 1: Select Large: Step 1 Choose a color: Two choices (so, there are two choices for Alternative 1.) Alternative 2: Select a Mini: Step 1 Choose a color: Four choices (so, there are four choices for Alternative 2.) Thus, there are = 6 possible choices of iPods. Decision Algorithms: The Addition and Multiplication Principles