Combinations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Combinations Reading: Kolman, Section 3.2.

Slides:



Advertisements
Similar presentations
5.3 Permutations and Combinations
Advertisements

DM. 13. A method for counting outcomes of multi-stage processes If you want to perform a series of tasks and the first task can be done in (a) ways, the.
Lecture 12 Permutations and Combinations CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
4/16/2015 MATH 224 – Discrete Mathematics Counting Basic counting techniques are important in many aspects of computer science. For example, consider the.
Chapter 13 sec. 3.  Def.  Is an ordering of distinct objects in a straight line. If we select r different objects from a set of n objects and arrange.
Permutations and Combinations
Probability – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Probability Reading: Kolman, Section 3.4.
Great Theoretical Ideas in Computer Science.
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.
The Division Rule Theorem: Suppose a set A has n elements and is partitioned by the collection {A 1, A 2,..., A p }, where each partition set has m elements.
BITS Pilani Pilani Campus Discrete Structures for Computer Science Section – 3 - Tutorial – 2 (21 Aug 2013) Jagat Sesh Challa.
Discrete Structures & Algorithms Counting Counting I: One-To-One Correspondence and Choice Trees.
Chapter 2 Section 2.4 Permutations and Combinations.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Combinations We should use permutation where order matters
Chapter 5 Section 5 Permutations and Combinations.
Chapter 11 Counting Methods © 2008 Pearson Addison-Wesley. All rights reserved.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Permutations and Combinations
1 Permutations and Combinations CS/APMA 202 Rosen section 4.3 Aaron Bloomfield.
What’s the best price? By: Darren Simington The prices… Also for four bottles of pepsi it cost /4 For a 6 pack it cost /6 It’s.
1 Permutations and Combinations CS/APMA 202 Rosen section 4.3 Aaron Bloomfield.
Introduction to Counting Discrete Structures. A Multiplication Principle.
Basic Counting Lecture 12: Oct 28. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations,
Basic Counting. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations, combinations.
Permutations and Combinations
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.
Labeled Trees – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Labeled Trees Reading: Kolman, Section 7.2.
Section 10-3 Using Permutations and Combinations.
2 Permutations and Combinations Lesson 8 HAND OUT REFERENCE SHEET AND GO OVER IT.
Sequences – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Sequences Reading: Kolman, Section 1.3.
Unit 7 Permutation and Combination IT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLP 1 Unit 7 Permutation and Combination.
Quiz Plot the point: (-4, 2, -3) in the Cartesian space. Find the midpoint between the 2 points: P(1, 5, -7) and Q(-5, 3, -3) 3. Find the distance.
2.2 Permutations (Textbook Section 4.6). Recall Factorial Notation  The number of ways to arrange n objects into n spots is n! (read “!” a “factorial”)
Permutations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Permutations Reading: Kolman, Section 3.1.
Ch Counting Principles. Example 1  Eight pieces of paper are numbered from 1-8 and placed in a box. One piece of paper is drawn from the box, its.
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,
Discrete Structures Combinations. Order Doesn’t Matter In the previous section, we looked at two cases where order matters: Multiplication Principle –
CompSci 102 Discrete Math for Computer Science March 20, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
Introduction A sequence is an ordered list of numbers. The numbers, or terms, in the ordered list are determined by a formula that is a function of the.
CSE 2813 Discrete Structures Solving Recurrence Relations Section 6.2.
Counting Principles Multiplication rule Permutations Combinations.
Lecture 6 Excess Notation. Excess 8 notation indicates that the value for zero is the bit pattern for 8, that is 1000 Excess 8 notation indicates that.
Copyright © Ed2Net Learning Inc.1. 2 Warm Up Tell whether each event is dependent or independent 1. Selecting a name from a Chicago telephone book and.
I CAN: Use Permutations and Combinations
3.2 Combinations.
MATH 2311 Section 2.1. Counting Techniques Combinatorics is the study of the number of ways a set of objects can be arranged, combined, or chosen; or.
8.6 Counting Principles. Listing Possibilities: Ex 1 Eight pieces of paper are numbered from 1 to 8 and placed in a box. One piece of paper is drawn from.
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.
Discrete Math Section 15.3 Solve problems using permutations and combinations Read page Combinations and permutations.
Functions – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Functions Reading: Kolman, Section 5.1.
Chapter 12.6 Notes. O A positive integer n is the product of the positive integers less than or equal to n. 0! Is defined to be 1. n! = n ● (n -1) ● (n.
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.
Permutations and Combinations AII Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish.
Quiz: Draw the unit circle: Include: (1)All “nice” angles in degrees (2) All “nice” angles in radians (3) The (x, y) pairs for each point on the unit circle.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
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.
Counting Principles Ex. Eight pieces of paper are numbered 1 to 8 and placed in a box. One piece of paper is drawn from the box, its number is written.
Chapter 10 Counting Methods.
Multiplication Rule Combinations Permutations
Permutations and Combinations
MATH 2311 Section 2.1.
Permutations and Combinations
Counting, Permutations, & Combinations
Using Permutations and Combinations
The Division Rule Theorem: Suppose a set A has n elements and is partitioned by the collection {A1, A2, ..., Ap}, where each partition set has m elements.
10.3 – Using Permutations and Combinations
MATH 2311 Section 2.1.
Presentation transcript:

Combinations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Combinations Reading: Kolman, Section 3.2

Combinations – Page 2CSCI 1900 – Discrete Structures Order Doesn’t Matter In the previous section, we looked at two cases where order matters: –Multiplication Principle – duplicates allowed –Permutations – duplicates not allowed

Combinations – Page 3CSCI 1900 – Discrete Structures Order Doesn’t Matter Duplicates Not Allowed What if order doesn’t matter, for example, a hand of cards in poker? Example: the elements 6, 5, and 2 make six possible sequences: 652, 625, 256, 265, 526, and 562 If order doesn’t matter, these six sequences would be considered the same.

Combinations – Page 4CSCI 1900 – Discrete Structures Removing Order from Order Notice the example given on the previous slide of the possible sequences involving the elements 6, 5, and 2. The number of arrangements of 6, 5, and 2 equals the number of ways three elements can be ordered, i.e., 3 P 3. 3 P 3 = 3!/(3-3)! = 6/1 = 6

Combinations – Page 5CSCI 1900 – Discrete Structures Removing Order from Order (continued) Assume that we came up with the number of permutations of three elements from the ten decimal digits 10 P 3 = 10!/(10-3)! = 10!/7! = 720 Each subset of three integers from the ten decimal digits would produce 6 sequences. Therefore, to remove order from the 720 sequences, simply divide by 6 to get 120.

Combinations – Page 6CSCI 1900 – Discrete Structures Combinations of 3 Digits

Combinations – Page 7CSCI 1900 – Discrete Structures Combinations Notation: n C r is called number of combinations of n objects taken r at a time. n C r = n!/[r!  (n – r)!] Example: How many 5 card hands can be dealt from a deck of 52? 52 C 5 = 52!/(5!  (52-5)!) Example: Pick 3 horses from 10 to place in any order Why are these examples different? –How many ways can a pair of dice come up? –How many dominoes are there in a pack?

Combinations – Page 8CSCI 1900 – Discrete Structures Order Doesn’t Matter Duplicates Allowed Assume you are walking with your grocery cart past the 2 liter sodas in Walmart. You need to pick up 10 bottles out of: –Coke –Sprite –Dr. Pepper –Pepsi –A&W Root Beer

Combinations – Page 9CSCI 1900 – Discrete Structures Buying Sodas You can define how you selected the sodas with a binary string of ones and zeros. A one indicates you have selected a soda from that category. A zero says that you have moved onto the next category.

Combinations – Page 10CSCI 1900 – Discrete Structures Buying Sodas (continued) Cokes were picked No Sprites were picked 3 Dr. Peppers were picked 2 Pepsis were picked 3 A&W’s were picked Moved to Sprites Moved to Pepsi Moved to A&W Moved to Dr. Pepper Last zero is unnecessary

Combinations – Page 11CSCI 1900 – Discrete Structures Buying Sodas (continued) This means that a binary pattern of 10 + (5 – 1) = 14 ones and zeros can be used to represent a selection of 10 items from 5 possibilities without worrying about order and allowing duplicates. This is the same as having 14 elements from which we will select 10 to be set as one, i.e., 14 C 10 = 14!/(10!  ( )!) = 1001

Combinations – Page 12CSCI 1900 – Discrete Structures Order Doesn’t Matter Duplicates Allowed The general formula for order doesn’t matter and duplicates allowed for a selection of r items from a set of n items is: (n + r – 1) C r