Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,

Slides:



Advertisements
Similar presentations
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
Advertisements

Chapter 6 Probability and Simulation
Section 5.1 and 5.2 Probability
Copyright © Ed2Net Learning, Inc.
Mathematics in Today's World
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.
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.
Statistics Lecture 5. Last class: measures of spread and box-plots Last Day - Began Chapter 2 on probability. Section 2.1 These Notes – more Chapter.
Set, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Counting Principles and Probability Digital Lesson.
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.
Counting Principles Counting Principles Chapter 6.7.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
NA387 Lecture 5: Combinatorics, Conditional Probability
Discrete Maths Objective to introduce some of the counting rules (product, sum, subtraction, division, pigeonhole) through examples , Semester 2,
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
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.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
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.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review Instructor: Anirban Mahanti Office: ICT Class.
Section 4.3 Objectives Use a tree diagram and the Fundamental Counting Principle to find probabilities Determine the number of ways a group of objects.
1.3 Simulations and Experimental Probability (Textbook Section 4.1)
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
The Basics of Counting Section 6.1.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Section Section Summary The Product Rule The Sum Rule The Subtraction Rule The Division Rule Examples, Examples, and Examples Tree Diagrams.
Probability Basics Section Starter Roll two dice and record the sum shown. Repeat until you have done 20 rolls. Write a list of all the possible.
6 October Randomness What does “random” mean? 4.2Probability Models 4.5General Probability Rules Defining random processes mathematically Combining.
Probability Experiments Probability experiment An action, or trial, through which specific results (counts, measurements, or responses) are obtained. Outcome.
Mr. Mark Anthony Garcia, M.S. Mathematics Department De La Salle University.
Counting Outcomes Objectives: (1) To develop fluency with counting strategies to determine the sample space for an event. Essential Questions: (1) How.
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.
Chapter 3 Probability Initial Objective: Develop procedures to determine the # of elements in a set without resorting to listing them first. 3-6 Counting.
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.
Chance We will base on the frequency theory to study chances (or probability).
Decision Trees DEFINITION: DECISION TREE A decision tree is a tree in which the internal nodes represent actions, the arcs represent outcomes of an action,
Counting.
Introduction to Combinatorics
Chapter 10 Counting Methods.
Compound Probability.
CS1022 Computer Programming & Principles
Counting Outcomes.
CHAPTER 12: Introducing Probability
Counting Outcomes.
Elementary Statistics: Picturing The World
COUNTING AND PROBABILITY
Set, Combinatorics, Probability & Number Theory
Set, Combinatorics, Probability & Number Theory
Counting I: Bijection and Choice Trees
Chapter 11 L11-2 Notes: Outcomes.
COUNTING AND PROBABILITY
COUNTING AND PROBABILITY
Probability and Chance
Probability Jeopardy Definition 100 TP/EP/Ind/Dep 100 Counting 100
Probability Jeopardy Definition 100 TP/EP/Ind/Dep 100 Counting 100
Counting Outcomes.
Counting Outcomes.
Counting Outcomes.
Counting Outcomes.
Counting Outcomes.
Independence and Counting
Chapter 3. Sets & Combinatorics
Independence and Counting
Probability of Independent Event
A random experiment gives rise to possible outcomes, but any particular outcome is uncertain – “random”. For example, tossing a coin… we know H or T will.
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set, Combinatorics, Probability & Number Theory

Section 3.2Counting1 Combinatorics: the branch of mathematics that deals with counting things. Counting problems can deal with infinite numbers, but usually we’re interested in finding out how many members are present in a finite set. For example: If a man has 4 suits, 8 shirts and 5 ties, how many outfits can he put together? How many memory locations can be addressed with a 32-bit address? Counting problems we’ve already looked at: How many rows in a truth table with n variables? How many subsets in the power set of a given set S? Counting example: A child is allowed to choose one jellybean out of two jellybeans, one red and one black, and one gummy bear out of three gummy bears, yellow, green, and white. How many different sets of candy can the child have?

Section 3.2Counting2 Example: Multiplication Principle There are 2  3=6 or 3  2=6 possible outcomes as seen from the following figures

Section 3.2Counting3 Counting – the Multiplication Principle Multiplication Principle: If there are n possible outcomes for a first event and m possible outcomes for a second event, then there are n*m possible outcomes for the sequence of two events. Hence, from the multiplication principle, it follows that for two sets A and B |A  B| = |A|*|B| Remember that A  B is the set of ordered pairs where the first element comes from A and the second from B. In this case, choose one thing from A ( there are |A| choices) and one thing from B, with |B| choices. In the example, A is the set of jelly beans, B is the set of gummy bears.

Section 3.2Counting4 Counting – the Multiplication Principle We can use induction to extend the multiplication principle: If there are n 1 possible outcomes (choices) for a first event, n 2 possible outcomes for a second event, … n m possible outcomes for the mth event, then there are n 1 *n 2 *…*n m possible outcomes for the sequence of events. Example: Number of locations addressable with 32 bits: n = ? m = ? What if repetition is not allowed? Suppose we have 10 colored balls. How many ways to arrange them in a row? Now suppose we don’t use all the objects in the set. Consider choosing three officers from a club that has 25 members? How many ways can we do this? If no person can hold more than one office If a person can hold more than one office.

Counting – The Addition Principle The multiplication principle applies when you have a sequence of events, and for each event you have several choices. Other situations involve more than one event, but they are disjoint, not separate. When we select one event we rule out the others. Example: buying a vehicle from a dealer who has 23 cars and 14 trucks. You have = 37 possible outcomes. First choose an event (buy car or buy truck) and then choose one possibility. Addition Principle: If A and B are disjoint events with n and m possible outcomes, then the total number of possible outcomes for event “AorB” is n + m. Section 3.2Counting5

Section 3.2Counting6 Addition Principle If A and B are disjoint sets, then |A  B| = |A| + |B| using the addition principle. Example 32 proves that if A and B are finite sets then |A-B| = |A| - |A  B| and |A-B| = |A| - |B| if B  A (A-B)  (A  B) = (A  B)  (A  B) = A  (B  B) = A  U = A Also, A-B and A  B are disjoint sets, therefore using the addition principle (see first bullet point above) |A| = | (A-B)  (A  B) | = |A-B| + |A  B| Hence, |A-B| = |A| - |A  B| If B  A, then A  B = B Hence, |A-B| = |A| - |B|

Combining the Principles Sometimes a counting problem uses both the multiplication and addition principles. Example: how many 4-digit numbers begin with the digits 4 or 5? Disjoint events: numbers starting with 4, numbers starting with 5. TWO such events (addition principle) Use multiplication principle to count number of 4-digit numbers: for the first digit there is one choice. How many for the second digit? The third & fourth? Now count the number of 5 digit numbers in the same way. Now, use the addition principle to get the total number of 4-digit numbers with first digit equal to 4 or 5. Section 3.2Counting7

Section 3.2Counting8 Decision trees Trees that provide the number of outcomes of an event based on a series of possible choices are called decision trees. Tony is pitching pennies. Each toss results in heads (H) or tails (T). How many ways can he toss the coin five times without having two heads in a row? There are 13 possible outcomes as seen from the tree.