Week 9 - Friday.  What did we talk about last time?  Partial orders  Total orders  Basic probability  Event  Sample space  Monty Hall  Multiplication.

Slides:



Advertisements
Similar presentations
1 Counting Techniques: Possibility Trees, Multiplication Rule, Permutations.
Advertisements

Counting Chapter 6 With Question/Answer Animations.
Introduction to Probability
Counting and Probability The outcome of a random process is sure to occur, but impossible to predict. Examples: fair coin tossing, rolling a pair of dice,
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department.
Discrete Mathematics Lecture 7 More Probability and Counting Harper Langston New York University.
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Discrete Mathematics Lecture 5
Discrete Mathematics Lecture 6 Alexander Bukharovich New York University.
1 More Counting Techniques Possibility trees Multiplication rule Permutations Combinations.
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
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Lecture 07 Prof. Dr. M. Junaid Mughal
Class notes for ISE 201 San Jose State University
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Week 10 - Monday.  What did we talk about last time?  More permutations  Addition rule  Inclusion and exclusion.
Lecture 08 Prof. Dr. M. Junaid Mughal
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Combinatorics.
More Counting Lecture 16: Nov 9 A B …… f. This Lecture We will study how to define mappings to count. There will be many examples shown. Bijection rule.
P ERMUTATIONS AND C OMBINATIONS Homework: Permutation and Combinations WS.
Jessie Zhao Course page: 1.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.4,
Advanced Mathematics Counting Techniques. Addition Rule Events (tasks) A and B are mutually exclusive (no common elements/outcomes) and n(A) = a, n(B)
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
9.3 Addition Rule. The basic rule underlying the calculation of the number of elements in a union or difference or intersection is the addition rule.
3.1Set Notation Venn Diagrams Venn Diagram is used to illustrate the idea of sets and subsets. Example 1 X  U(b) A  B X U B A U.
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
10.3 – Using Permutations and Combinations Permutation: The number of ways in which a subset of objects can be selected from a given set of objects, where.
3. Counting Permutations Combinations Pigeonhole principle Elements of Probability Recurrence Relations.
Permutations and Combinations
Chapter 6, Counting and Probability
Unit 7 Permutation and Combination IT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLP 1 Unit 7 Permutation and Combination.
Week 11 - Wednesday.  What did we talk about last time?  Exam 2 post-mortem  Combinations.
Week 9 - Wednesday.  What did we talk about last time?  Exam 2  Before that: review  Before that: relations.
Counting CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Main Menu Main Menu (Click on the topics below) Permutation Example 1 Example 2 Circular Permutation Permuting r of n objects Example 1 Example 2 Example.
The Pigeonhole Principle. The pigeonhole principle Suppose a flock of pigeons fly into a set of pigeonholes to roost If there are more pigeons than pigeonholes,
Permutations and Combinations
Counting Principles. Counting examples Ex 1: A small sandwich café has 4 different types of bread, 5 different types of meat and 3 different types of.
PERMUTATIONS AND COMBINATIONS BOTH PERMUTATIONS AND COMBINATIONS USE A COUNTING METHOD CALLED FACTORIAL.
Discrete Mathematics Lecture # 25 Permutation & Combination.
Counting Principles Multiplication rule Permutations Combinations.
1 CS 140 Discrete Mathematics Combinatorics And Review Notes.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
Permutations Counting where order matters If you have two tasks T 1 and T 2 that are performed in sequence. T 1 can be performed in n ways. T 2 can be.
CS Lecture 8 Developing Your Counting Muscles.
5.5 Generalized Permutations and Combinations
Section The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must have more than 1 pigeon.
Week 9 - Wednesday.  What did we talk about last time?  Exam 2  Before that: review  Before that: relations.
Week 9 - Friday.  What did we talk about last time?  Permutations  Counting elements in sets  Brief introduction to combinations.
Section 6.3. Section Summary Permutations Combinations.
The Multiplication Rule
Discrete Mathematics Lecture 8 Probability and Counting
Elementary Probability Theory
9. Counting and Probability 1
9. Counting and Probability 1 Summary
COUNTING AND PROBABILITY
COUNTING AND PROBABILITY
COUNTING AND PROBABILITY
Discrete Structures Counting.
Using Permutations and Combinations
Using Permutations and Combinations
10.3 – Using Permutations and Combinations
Presentation transcript:

Week 9 - Friday

 What did we talk about last time?  Partial orders  Total orders  Basic probability  Event  Sample space  Monty Hall  Multiplication rule

 There are 10 thieves who have just stolen an enormous pile of loot: gold, jewels, solid state drives, and so on  The thieves need to find a way to divide it all equally  Give an algorithm such that each of the 10 thieves believe that he is getting at least 1/10 of the loot  Hint: When you were a kid, how did your mother have you and your brother or sister divide the last piece of cake?

 A permutation of a set of objects is an ordering of the objects in a row  Consider set { a, b, c }  Its permutations are:  abc  acb  cba  bac  bca  cab  If a set has n  1 elements, it has n! permutations

 How many different ways can the letters in the word "WOMBAT" be permuted?  How many different ways can "WOMBAT" be permuted such that "BA" remains together?  What is the probability that, given a random permutation of "WOMBAT", the "BA" is together?  How many different ways can the letters in "MISSISSIPPI" be permuted?  How many would it be if we don't distinguish between copies of letters?

 What if you want to seat 6 people around a circular table?  If you only care about who sits next to whom (rather than who is actually in Seat 1, Seat 2, etc.) how many circular permutations are there?  What about for n people?

 An r-permutation of a set of n element is an ordered selection of r elements from the set  Example: A 2-permutation of {a, b, c} includes:  ab  ac  ba  bc  ca  cb  The number of r-permutations of a set of n elements is P(n,r) = n!/(n – r)!

 What is P(5,2)?  How many 4-permutations are there in a set of 7 objects?  How many different ways can three of the letters in "BYTES" be written in a row?

 If a finite set A equals the union of k distinct mutually disjoint subsets A 1, A 2, … A k, then: N(A) = N(A 1 ) + N(A 2 ) + … + N(A k )

 How many passwords are there with length 3 or smaller?  Assume that a password is only made up of lower case letters  Passwords with length 3 or smaller fall into 3 disjoint sets  Number of passwords with length 1  Number of passwords with length 2  Number of passwords with length 3  Total passwords = = 18278

 If A is a finite set and B is a subset of A, then N(A – B) = N(A) – N(B)  Example:  Recall that a PIN has 4 digits, each of which is one of the 26 letters or one of the 10 digits  How many PINs contain repeated symbols?  What is the probability that a PIN contains a repeated symbol?

 If A, B, C are any finite sets, then N(A  B) = N(A) + N(B) – N(A  B)  And, N(A  B  C) = N(A) + N(B) + N(C) – N(A  B) – N(A  C) – N(B  C) + N(A  B  C)

 How many integers from 1 through 1,000 are multiples of 3 or multiples of 5?  How many integers from 1 through 1,000 are neither multiples of 3 nor multiples of 5?

 Consider a survey of 50 students about the programming languages they know  The results are:  30 know Java  18 know C++  26 know ML  9 known both Java and C++  16 know both Java and ML  8 know both C++ and ML  47 know at least one of the three  How many students know none of the three?  How many students know all three?  How many students know Java and C++ but not ML?  How many students know Java but neither C++ nor ML?

Student Lecture

 How many different subsets of size r can you take out of a set of n items?  Subset of size 3 out of a set of size 5?  Subset of size 4 out of a set of size 5?  Subset of size 5 out of a set of size 5?  Subset of size 1 out of a set of size 5?  This is called an r-combination, written

 In r-permutations, the order matters  In r-combinations, the order doesn't  Thus, the number of r-combinations is just the number of r-permutations divided by the possible orderings

 How many ways are there to choose 5 people out of a group of 12?  What if two people don't get along? How many 5 person teams can you make from a group of 12 if those two people cannot both be on the team?

 How many five-card poker hands contain two pairs?  If a five-card hand is dealt at random from an ordinary deck of cards, what is the probability that the hand contains two pairs?

 What if you want to take r things out of a set of n things, but you are allowed to have repetitions?  Think of it as putting r things in n categories  Example: n = 5, r = 4  We could represent this as x||xx|x|  That's an r x's and n – 1 |'s xxxx

 So, we can think of taking an r-combination with repetitions as choosing r items in a string that is r + n – 1 long and marking those as x's  Consequently, the number of r-combinations with repetitions is

 Let's say you grab a handful of 10 Starbursts  Original Starbursts come in  Cherry  Lemon  Strawberry  Orange  How many different handfuls are possible?  How many possible handfuls will contain at least 3 cherry?

 This is a quick reminder of all the different ways you can count things: Order MattersOrder Doesn't Matter Repetition Allowed nknk Repetition Not Allowed P(n,k)P(n,k)

 Binomial theorem  Probability axioms  Expected values

 Work on Homework 7  Due Friday before midnight!  Keep reading Chapter 9