Arrangements & Selections with Repetition

Slides:



Advertisements
Similar presentations
Permutations and Combinations Rosen 4.3. Permutations A permutation of a set of distinct objects is an ordered arrangement these objects. An ordered arrangement.
Advertisements

Counting Chapter 6 With Question/Answer Animations.
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.
Counting Tools ● Enumeration ● Multiplication ● Addition ● Negation.
CSE115/ENGR160 Discrete Mathematics 04/17/12
CSE 321 Discrete Structures Winter 2008 Lecture 16 Counting.
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 5.4 Distributions Prepared by Jo Ellis-Monaghan.
Arrangements & Selections with Repetition
4/2/03Tucker, Section 5.31 How many ways to arrange the six letters b, a, n, a, n, a ? Arrangements and Selections With Repetitions Six places: __ __ __.
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
Distributions.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Tucker, Section 5.41 Section 5.4 Distributions By Colleen Raimondi.
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Chapter 1 Fundamental principles of counting 陳彥良 中央大學資管系.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.4,
Basic Counting. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations, combinations.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Generalized Permutations and Combinations
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Elementary Combinatorics Combinatorics  Deals with enumeration (counting) techniques and related algebra.  Basis of counting XSet |X|No. of elements.
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.
2 Permutations and Combinations Lesson 8 HAND OUT REFERENCE SHEET AND GO OVER IT.
Permutation and Combination
Simple Arrangements & Selections. Combinations & Permutations A permutation of n distinct objects is an arrangement, or ordering, of the n objects. An.
Counting nCr = n!/r!(n-r)!=nC(n-r) This equation reflects the fact that selecting r items is same as selecting n-r items in forming a combination from.
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,
5.5 Generalized Permutations and Combinations
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.
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.
Distributions. Basic Model for Distributions of Distinct Objects The following problems are equivalent: Distributing n distinct objects into b distinct.
Operations on Sets Union of Sets Intersection of Sets
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Section 6.3. Section Summary Permutations Combinations.
Example A standard deck of 52 cards has 13 kinds of cards, with four cards of each of kind, one in each of the four suits, hearts, diamonds, spades, and.
The Multiplication Rule
L14: Permutations, Combinations and Some Review
UNIT 5 Fundamental principles of counting
The Pigeonhole Principle
Developing Your Counting Muscles
Permutations and Combinations
CSE15 Discrete Mathematics 04/19/17
Generalized Permutations and Combinations
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
COCS DISCRETE STRUCTURES
Generalized Permutations & Combinations: Selected Exercises
Permutations and Combinations
Permutations and Combinations
Permutations and Combinations
Do Now If fours cards are drawn from a deck without replacement, find the probability of getting these results: All kings All diamonds All sevens.
CS 2210 Discrete Structures Counting
CS100: Discrete structures
Arrangements & Selections with Repetition
Chapter 7 Logic, Sets, and Counting
Permutations and Combinations
Basic Counting.
CSE 321 Discrete Structures
COUNTING AND PROBABILITY
Counting techniques Basic Counting Principles, Pigeonhole Principle, Permutations and Combinations.
Basic Counting Lecture 9: Nov 5, 6.
Permutations and Combinations
Inclusion-Exclusion Principle
Combinations with repetitions allowed
Combinatorial Identities
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.
Permutations and Combinations
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
Presentation transcript:

Arrangements & Selections with Repetition

Arrangements with Unlimited Repetition Enumerating r-permutations from a set of n objects with repetition, denoted, U(n, r) = nr. What does this number remind you of? Example: There are 25 true/false questions on an examination. How many different ways can a student fill in answers, if she can also leave the answer blank?

Arrangements with Limited Repetition Generalizing the MISSISSIPPI example: Theorem 1: If there are r1 objects of type 1, r2 of type 2, …, rm of type m, where r1 + r2 + . . . + rm = n, then the # of arrangements of these n objects, denoted P(n; r1 , r2 , …, rm ) , is

We have n positions to distribute the objects. Select r1 of them to position the objects of type 1. n - r1 positions remain with rm-1 types of objects. Repeat. (Use an induction argument)

Proof Use the product rule: Phase 1: pick the positions for the type 1 objects There are nCr1 ways to do that. Phase 2: pick the positions for the type 2 objects There are (n - r1)Cr2 ways to do that. And so on … Phase m: pick the positions for the type m objects There are (n - r1 - r2 - …- rm-1)Crm ways to do that.

Example How many ways can 23 different books be given to 5 students so that 2 students get 4 books each, and the other 3 get 5 books each? Use the product rule: 1. Pick the 2 students of 5 who receive 4 books. 2. Distribute the books to the students. I.e., pick the 4 books for student1, pick the 4 books for student2, pick the 5 books for student3, … The answer thus is 5C2  P(23;4,4,5,5,5).

Example How many 8-digit sequences are there involving exactly 6 different digits? Use the product rule: 1. Pick the 6 digits to be used. 2. For any given 6 digits, count the sequences

For a given 6 digits, count the sequences Use the sum rule Partition the answers according to the 2 possible distribution of the 6 digits. 1 digit is used 3 times; the other 5 are used once 2 digits are used twice; the other 4 are used once Count the solutions for each distribution. Pick the digit to be used 3 times; arrange the digits. Pick the digits to be used twice; arrange the digits.

Selections with Unlimited Repetition Key to this kind of problem: Knowing how to count the number of n-bit binary strings with exactly r 1s: nCr. We want to count the number of distinct selections of 12 items from identical: Palm Pilots Nokia cell phones IBM Think Pads Uzi machine guns.

For example, 1 possible such selection is: 1 Palm Pilot 0 Nokia cell phones 10 IBM Think Pads 1 Uzi machine gun As a string, we could represent this selection as: P//IIIIIIIIII/U

How would we represent as a string the selection: 2 Palm Pilot 3 Nokia cell phones 6 IBM Think Pads 1 Uzi machine gun If we agree on an order of item types, we could represent this selection as 00/000/000000/0

Each string with 12 0s and 3 /s corresponds to 1 selection. Each such selection corresponds to 1 such string. Thus, the problem is equivalent to asking “How many (12 + 4 - 1)-bit binary strings are there with exactly 3 1s?” There are (12 + 4 - 1)C3 = (12 + 4 - 1)C12 such strings.

Selection with Unlimited Repetition: Equivalent Formulations The number of r-combinations of n distinct objects with unlimited repetition. nonnegative integer solutions to x1 + x2 + . . . + xr = n. ways to distribute n balls into r numbered boxes. (n + r - 1)-bit binary strings with exactly r-1 1s. (n + r - 1)C(r -1) = (n + r - 1)Cn

Example How many ways are there to pick 10 balls from unlimited piles of identical red, blue, and black balls, and 1 green, 1 orange, and 1 yellow ball?

Example How many ways are there to pick 10 balls from unlimited piles of identical red, blue, and black balls, and 1 green, 1 orange, and 1 yellow ball? Partition the solution set into those that use 1, 2, or 3 of the “limited edition (LE)” balls. For a given part, use the product rule: count the ways to pick the LE ball[s] count the ways to pick the rest of the balls.

Example How many ways are there to pick 20 recreational drug items from: beers, joints, jolts, original bottles of coke (which contained cocaine) If you must have at least 2 beers, 3 joints, 1 jolt, & 3 cokes?

This is equivalent to asking how many different selections are there of 20 - 2 - 3 - 1 - 3 = 11 items: (11 + 4 - 1)C(4 - 1).