Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department.

Slides:



Advertisements
Similar presentations
Basic Permutations and Combinations
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.
Counting Chapter 6 With Question/Answer Animations.
Expansion of Binomials. (x+y) n The expansion of a binomial follows a predictable pattern Learn the pattern and you can expand any binomial.
Fall 2002CMSC Discrete Structures1 Permutations How many ways are there to pick a set of 3 people from a group of 6? There are 6 choices for the.
CSE115/ENGR160 Discrete Mathematics 04/17/12
Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department.
Discrete Structures Chapter 2 Part A Sequences Nurul Amelina Nasharuddin Multimedia Department.
Lecture 5 Counting 4.3, Permutations r-permutation: An ordered arrangement of r elements of a set of n distinct elements. Example: S={1,2,3}:
Counting Techniques: r-combinations with
College Algebra Fifth Edition
Section 4.3: Permutations and Combinations Def: A permutation of a set of distinct objects is an ordered arrangement of these objects. Ex: {a, b, c, d}
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.
4. Counting 4.1 The Basic of Counting Basic Counting Principles Example 1 suppose that either a member of the faculty or a student in the department is.
The Binomial Theorem.
The Basics of Counting Section 6.1.
Chapter 8. Section 8. 1 Section Summary Introduction Modeling with Recurrence Relations Fibonacci Numbers The Tower of Hanoi Counting Problems Algorithms.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.4,
Generalized Permutations and Combinations
Binomial Coefficients, Inclusion-exclusion principle
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Permutations and Combinations
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Counting Subsets of a Set: Combinations Lecture 31 Section 6.4 Wed, Mar 21, 2007.
March 10, 2015Applied Discrete Mathematics Week 6: Counting 1 Permutations and Combinations How many different sets of 3 people can we pick from a group.
Chapter 17: The binomial model of probability Part 3 AP Statistics.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Lecture 5 Counting 4.3, Permutations r-permutation: An ordered arrangement of r elements of a set of n distinct elements. Example: S={1,2,3}:
1 Binomial Coefficients CS 202 Epp, section ??? Aaron Bloomfield.
11.1 – Pascal’s Triangle and the Binomial Theorem
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Simple Arrangements & Selections. Combinations & Permutations A permutation of n distinct objects is an arrangement, or ordering, of the n objects. An.
10/24/2015MATH 106, Section 81 Section 8 Pascal’s Triangle Questions about homework? Submit homework!
Copyright © 2011 Pearson Education, Inc. Combinations, Labeling, and the Binomial Theorem Section 8.5 Sequences, Series, and Probability.
4.1.2 Pigeonhole principle:Strong Form  Theorem 4.2: Let q 1,q 2,…,q n be positive integers. If q 1 +q 2 +…+q n -n+1 objects are put into n boxes, then.
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,
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.6,
Spring 2016 COMP 2300 Discrete Structures for Computation
Binomial Coefficients: Selected Exercises
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.
Copyright © Peter Cappello 2011 Simple Arrangements & Selections.
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.
Binomial Coefficients and Identities
3 ( x + 2 ) = 3 x ( 3 x - 5 ) = 6x - 10 x x x - 5 M May.
L14: Permutations, Combinations and Some Review EECS 203: Discrete Mathematics.
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.
1 DISCRETE STRUCTURES DISCRETE STRUCTURES SSK3003 DR. ALI MAMAT 1.
Chapter 6 With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 5 Counting 歐亞書局.
Fall 2002CMSC Discrete Structures1 Combinations An r-combination of elements of a set is an unordered selection of r elements from the set. Thus,
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Copyright © 2004 Pearson Education, Inc.. Chapter 7 Further Topics in Algebra.
Section 6.3. Section Summary Permutations Combinations.
The Pigeonhole Principle
Binomial Coefficients: Selected Exercises
CSE15 Discrete Mathematics 04/19/17
Chapter 5, Section 5.1 The Basics of Counting
1(1)5 + 5(1)4(2x) + 10(1)3(2x)2 + 10(1)2(2x)3 + 5(1)(2x)4 + 1(2x)5
COCS DISCRETE STRUCTURES
Pascal’s Triangle and the Binomial Theorem
Algebraic Expressions
Permutations and Combinations
CS100: Discrete structures
8.4 – Pascal’s Triangle and the Binomial Theorem
Permutations and Combinations
Permutations and Combinations
10.4 – Pascal’s Triangle and the Binomial Theorem
Presentation transcript:

Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department

Outline Rules of Sum and Product Permutations Combinations: The Binomial Theorem Combinations with Repetition: Distribution Probability 2

Example: Lotto Pick 6 numbered balls out of 49 (numbered consecutively 1,2,3,…,49) without replacing them. How many ways can this be done (the order is important here) First ball: 49 choices, Second : 48, Third: 47, Fourth: 46, Fifth: 45, Sixth: 44 Total: 49  48  47  46  45  44 = 10,068,347,520 So there are over 10 billion ways to pick the six balls 3

Example: Lotto But the order is not important when playing Lotto etc. are the same and should not be counted separate So we can NOT use the permutation formula We use the COMBINATION formula 4

Combinations Permutation is an ordered selection, combination is an unordered selection An r-combination of a set of n elements is an unordered selection of r elements from the set, repetition is not allowed: C(n, r) = n! / [ r!(n - r)! ] Or: Number of subsets of size r that can be chosen from a set of n elements Notes: (a) C(n, r) = P(n, r) / r! (b) C(n, n) = 1 (c) C(n, 0) = 1 (d) C(n, r) = C(n, n ‐ r)

Binomial Coefficient The number of r-combination of a set with n distinct elements is denoted by C(n, r) Note that C(n, r) is also denoted by and is called the binomial coefficient “n choose r” 6

Example (1) How many ways can 2 out of 3 paintings of an artist be selected for shipment to an exhibition? Let the paintings correspond to {A,B,C} There are 6 permutations, but only 3 combinations: {A,B},{A,C},{B,C} 7 First choiceABC SecondB or CA or CA or B Ordered(A,B) ; (A,C)(B,A) ; (B,C)(C,A) ; (C,B)

Example (2) Find the number of ways in which 3 components can be selected from a batch of 20 different components C(20, 3) = 20! / [ 3!(20 – 3)! ] = 20! / (3!17!) =

Example (3) In how many ways can a group of 4 boys be selected from 10 if (a) the eldest boy is included in each group? (b) the eldest boy is excluded? (c) What proportion of all possible groups contains the eldest boy? 9

Example (3) (a) Choose 3 from 9, since the eldest boy is fixed: C(9, 3) = 9! / [ 3! (9 - 3)! ] = 84 (b) If the eldest boy is excluded, it is actually choose 4 boys from 9: C(9, 4) = 9! / [ 4! (9 - 4)! ] = 126 (c) The number of all possible groups is C(10, 4) = 10! / [ 4! (10 - 4)! ] = 210 So the proportion of all possible groups containing the eldest boy is: 84 / 210 = 40% 10

The Binomial Theorem In algebra, the sum of two terms, such as x + y is called binomial The binomial theorem gives an expression for the powers of a binomial (x + y) n, for each positive integer n and all real numbers x and y The expansion of (x + y) 3 can be found using combinatorial reasoning instead of multiplying the three terms out 11

Multiplying the terms: (x + y) 3 (x + y) 3 = (x + y)(x + y)(x + y) = (xx + xy + yx + yy)(x + y) = xxx + xyx + yxx + yyx + xxy + xyy + yxy + yyy = x 3 + 3x 2 y + 3xy 2 + y 3 12

When (x + y) 3 = (x + y)(x + y)(x + y) is expanded, terms of the form x 3, x 2 y, xy 2, and y 3 arise. To obtain a term of the form x 3, an x must be chosen in each of the sums, and this can be done in only one way. Thus, the x 3 term in the product has a coefficient of l. x 2 y: choose x in two of the three sums (and consequently a y in the other sum). Hence, the number of such terms is the number of 2-combinations of three objects, xy 2 : choose x from one of the three sums (and consequently take a y from each of the other two sums). This can be done in ways. y 3 : choose the y for each of the three sums in the product, and this can be done in exactly one way. 13 Combinatorial reasoning: (x + y) 3

Binomial Theorem Given any real numbers a and b and any nonnegative integer n, (a + b) n = = 14

Example (1) What is the expansion of (x – 4y) 4 ? (x +(– 4y)) 4 = What is the coefficient of term x 3 y? Ans:

Example (2) What is the coefficient of a 5 b 7 in (a – 2b) 12 ? The term is Ans: The coefficient is –