Last Week We are going to count: The Art of Combinatorics

Slides:



Advertisements
Similar presentations
COMP 170 L2 Page 1 L03: Binomial Coefficients l Purpose n Properties of binomial coefficients n Related issues: the Binomial Theorem and labeling.
Advertisements

1 Section 4.3 Permutations & Combinations. 2 Permutation Set of distinct objects in an ordered arrangement An ordered arrangement of r members of a set.
Permutations and Combinations Rosen 4.3. Permutations A permutation of a set of distinct objects is an ordered arrangement these objects. An ordered arrangement.
CSE115/ENGR160 Discrete Mathematics 04/17/12
COMP 170 L2 Page 1 L03: Binomial Coefficients l Purpose n Properties of binomial coefficients n Related issues: the Binomial Theorem and labeling.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Chapter 8 Counting Techniques PASCAL’S TRIANGLE AND THE BINOMIAL THEOREM.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Permutations & Combinations and Distributions
Probability Notes Math 309. Sample spaces, events, axioms Math 309 Chapter 1.
Binomial Coefficients, Inclusion-exclusion principle
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Binomial Expansion Honors Advanced Algebra Presentation 2-3.
1 Chapter 1 Fundamental Principles of Counting Discrete and Combinatorial Mathematics R. P. Grimaldi, 5 th edition, 2004.
1 Binomial Coefficients CS 202 Epp, section ??? Aaron Bloomfield.
COMP 170 L2 L17: Random Variables and Expectation Page 1.
September1999 CMSC 203 / 0201 Fall 2002 Week #9 – 21/23/25 October 2002 Prof. Marie desJardins.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 4 Counting methods and the pigeonhole principle.
Multiplying Binomial × Binomial An important skill in algebra is to multiply a binomial times a binomial. This type of problem will come up often.
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,
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
1 CS 140 Discrete Mathematics Combinatorics And Review Notes.
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.
Algebra 2 Tuesday Today, we will be able to… Use combinations and permutations to find probability Create and use graphs of probability distribution.
Section 6.4. Powers of Binomial Expressions Definition: A binomial expression is the sum of two terms, such as x + y. (More generally, these terms can.
Probability Distributions and Expected Value Chapter 5.1 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U Authors:
Binomial Coefficients and Identities
L14: Permutations, Combinations and Some Review
Homework Questions? Daily Questions: How do I Multiply Polynomials?
The Pigeonhole Principle
A Fast Introduction What is a matrix (One Matrix many matrices)
Introduction What is a matrix (One Matrix many matrices)
Permutations and Combinations
CSE15 Discrete Mathematics 04/19/17
Today’s topics Counting Reading: Sections , 4.4 Upcoming
COCS DISCRETE STRUCTURES
Warm up (TIPS) A Ferris wheel holds 12 riders. If there are 20 people waiting in line, how many different ways can 12 people ride it? You may write your.
12.2 Combinations and Binomial Theorem
Permutations and Combinations
4.2 Pascal’s Triangle and the Binomial Theorem
Multiplying Monomials.
Permutations and Combinations
CS 2210 Discrete Structures Counting
The Binomial Theorem.
Combinatorics.
Objective Multiply polynomials..
Multiplying Polynomials
10.2A Combinations What you should learn: Goal 1
Simplifying Algebraic Expressions
Section 8.4 – Continuous Probability Models
Combinatorics.
Permutations and Combinations
Basic Counting.
Multiplying Polynomials
Combinatorics.
Homework Questions? Daily Questions: How do I Multiply Polynomials?
Permutations and Combinations
Sequences and the Binomial Theorem
Binomial Theorem; Pascal’s Triangle
Combinatorics.
Probability Notes Math 309.
Probability.
Remainder Theorem.
Chapter 11: Further Topics in Algebra
Unit 5 Polynomial Operations
Agenda Lecture Content: Discrete Probability
Two hungry Math 160 students are waiting in line at Chipotle
Section 11.7 The Binomial Theorem
Probability Notes Math 309.
Probability Notes Math 309 August 20.
Presentation transcript:

Last Week We are going to count: The Art of Combinatorics Thus far: multiplying events adding events inclusion – exclusion principle Today: Permutations and Combinations Binomials, Pascal’s Triangle

Permutations / Combinations How many ways can you order n elements? Answer: n(n–1)(n–2)…1 = n! (say “n factorial”) Note: 0!=1, 1!=1, 2!=2, 3!=6, 4!=24, … How many ways can you order r out of n elements? Answer: n(n–1)(n–2)…(n–r+1) = n! / (n–r)! Sometimes denoted by P(n,r)

Example: Let there be 15 different people, in how many ways can you line up 10 of them? Answer: 1514…6 = P(15,10) = 10,897,286,400 Note how fast n! grows: n! = (2n)

Binomial How many ways can you select r elements out of n? (without concern for the order of selection) Answer: You can order the r elements in n!/(n–r)! ways Dividing out the r! orderings, gives you Say: “n choose r”, or “the binomial of n over r”

Examples: Let there be 15 different people, in how many ways can you select 10 of them? Answer: C(15,10) = 15! / (10!5!) = 3003 I’m flipping a coin 20 times, in how many ways can I have the outcome “heads” 10 times? Answer: C(20,10) = 20! / (10!10!) = 184 756 … the outcome “heads” k times? Answer: C(20,k) = 20! / ((20–k)!k!)

Properties of Binomials Because: we have Also: For constant c and variable n:

Binomial Theorem Consider the n-fold product (a+b)n: (a+b)(a+b)…(a+b) = an + nan–1b + n(n–1)/2an–2b2 +…+ bn Binomial Theorem (8.39): Example: (a+b)4 = a4+4a3b+6a2b2+4ab3+b4 Immediate consequence:

Bit Strings Consider all bit strings of length n (all 2n of them). The number of strings with k “ones” is C(n,k). Hence indeed C(n,0)+C(n,1)+C(n,2)+…+C(n,n) = 2n. We expect that ‘most’ strings will have  n/2 ones. Indeed, when we plot C(20,k) for k=0,…,20, we get the bell shaped binomial distribution:

Binomial Identity Theorem 8.43: For all n,kN: ÷ ø ö ç è æ - + = k 1 n Theorem 8.43: For all n,kN: Proof by interpretation: “How can we pick k out of n? …consider n–1…” et cetera (see book). Algebraic Proof:

Triangle of Binomials Because of the relation C(n,k) = C(n–1,k–1)+C(n–1,k), we can write the binomials in a triangle: Where on the ‘outside edges’ we have C(n,0)=C(n,n)=1 On the ‘inside’ we have This gives…

Pascal’s Triangle By filling in the triangle of binomial values, we get Pascal’s Triangle: For large n, the values on a row (like 1,4,6,4,1) behave like a smooth bell curve: the Gaussian

Binomials and Bits Consider a random n bit string x1,…,xn with xj{0,1}. The probability of this string is 2–n, the probability of k “ones” in the string is C(n,k)/2n The binomial distribution for large n teaches us that, although we expect half of the n bits to be “one”, the probability of k=½ n will be: Instead, we can expect the number of “ones” to be between k = ½ n – n and ½ n + n