Lecture 9  June 18, 2003
Combinatorics The branch of mathematics studying the enumeration, combination, and permutation of sets of elements and the mathematical relations which characterize these properties.  Examples of combinatorial problems:  Scheduling classes (or tournament play);  Determining cheapest route for a multi-city tour;  Tracing a figure without picking up your pencil or repeating a line;  Determining the odds of a full house in poker;  Designing reliable networks;  Creating efficient computer programs.
Examples Two  dice are rolled, one black and one white, how many different rolls are possible? (white 1 is not black 1) How many ways are there to choose three officers from a club of 25 people?
Multiplication Principle If a choice consists of two steps, of which one can be made in m ways and the other in n ways, then the whole choice can be made in m*n ways.   Example--- For any finite set S, let |S| denote the number of elements in S. If A and B are finite sets, then |AXB|=|A|*|B|
Multiplication Principle So we can generalize the multiplication principle for the “multiplication of choices” so that it applies to choices involving more than two steps. If in a sequence of  n  decisions, the  number of choices  for decision  i  does not depend on how the previous  i-1  decisions are made, then the total number of ways to make the whole sequence of decisions is the  product  of the number of choices for each decision.  So for k steps, where k is a positive integer, we have: If a choice consists of  k  steps, of which the first can be made in n 1  ways, the second in n 2  ways, …, and the  k th in n k  ways, then the whole choice can be made in n 1 ·n 2 ·…·n k  ways.
Addition Principle If a set can be partitioned into  disjoint  subsets, then the number of objects in the set  =   the sum of the number of objects in each of its parts.  Example :   The number of people in this room equals the number of men plus the number of women.
Addition Principle(cont.) The number of subsets of {1,2,3,4} equals the number of 0-element subsets     =1 the number of 1-element subsets {1},{2}, {3},{4}  =4 the number of 2-element subsets {1,2}, {1,3}, {1,4},   {2,3}, {2,4}, {3,4} =6 the number of 3-element subsets {1,2,3}, {1,2,4},  {1,3,4}, {2,3,4}  =4 the number of 4-element subsets {1,2,3,4}  =1  + TOTAL  =16
Addition Principle(cont.) A child is allowed to choose one jellybean out of two jellybeans, one red and one black, and a gummy bear out of three gummy bears, yellow, green, and white. How many different sets of candy can the child have?
Using the principles together Now we can use both principles at the same time: If a woman has seven blouses, five skirts and nine dresses, how many different outfits does she have? (7*5)+9 How many three-digit integers are even?
Decision Trees If the multiplication principle doesn’t apply we can use less regular decision trees. We can use the multiplication principle, when the number of outcomes at any level of the tree is the same throughout that level. Number of outcomes of an event based on a series of possible choices.   Example: Draw the decision tree for the number of strings X’s, Y’s and Z’s with length 3 that do not have a Z following a Y.
Principles in Set Now let’s see some properties: For any finite set S, let |S| denote the number of elements in S. If A and B are finite sets, then  |AXB| = |A| • |B| Let A and B be disjoint finite sets.  Then |AUB| = |A|+|B| If A and B are finite sets, then |A-B| = |A| - |A    B| and |A-B| = |A| - |B| if B    A
Principle of Inclusion and Exclusion If A and B are any subset of a universal set S, then {A-B}, {B-A}, {A      B} are mutually disjoint sets. Venn diagram representation What is (A-B)    (B-A)    (A     B)? And |(A-B)    (B-A)    (A     B) | ? So finally |A    B| = |A| + |B| - |A    B|
Principle of Inclusion and Exclusion (cont.) So if we’re dealing with two sets: |A    B| = |A| + |B| - |A    B| And if we are dealing with three sets: |A    B    C| = |A| + |B| + |C| - |A    B| - |A    C| -  |B    C| + |A    B    C | What is the venn gram representation of it?
So the pattern is:  If we have n sets, we should add the number of elements in the single sets, subtract the number of elements in the intersection of two sets, add the number of elements in the intersection of three sets, subtract the number of elements in the intersection of four sets, and so on. Principle of Inclusion and Exclusion Principle of Inclusion and Exclusion (cont.)
Principle of Inclusion and Exclusion (cont.) How to prove it?  Mathmatical induction. Base case…… Assumption ….. Show …. (Page 205-206)
Principle of Inclusion and Exclusion (cont.) Example– A survey of 150 college students reveals that 83 own automobiles, 97 own bikes, 28 own motorcycles, 53 own a car and a bike, 14 own a car and a motorcycles, 7 own a bike and a motorcycle, and 2 own all three. Question– How many students own only a bike? How many students do not own any of the three?
Pigeonhole Principle If more than k items are placed into k bins, then at least one bin contains more than one item. Example– How many times must a single die be rolled in order to guarantee getting the same value twice?
Excercise Exercise 3.2–  28, 48, 49,58-64,69, 72 Exercise 3.3–  7, 11, 15, 19

More Related Content

PDF
CPSC 125 Ch 3 Sec 2
PPT
Combinatorics
PDF
CPSC 125 Ch 3 Sec 3
PDF
Counting i (slides)
PDF
PermutATIONS
PPTX
C1: Whole Numbers
PPTX
permutation and combination
PPTX
Permutations and-combinations-maths
CPSC 125 Ch 3 Sec 2
Combinatorics
CPSC 125 Ch 3 Sec 3
Counting i (slides)
PermutATIONS
C1: Whole Numbers
permutation and combination
Permutations and-combinations-maths

What's hot (19)

PPTX
Lusbyn morales numeros reales
PPTX
STAT: Counting principles(2)
PPTX
properties of multiplication of integers
PPSX
Mathematics In Plain Sight
PPTX
PERMUTATION & COMBINATION
PPTX
properties of addition and subtraction of integers
PPTX
multiplication of integers
DOCX
Class xi worksheet (9,10,11) two levels
PPT
Permutations & Combinations
PDF
Taylor slides
DOCX
An argand diagram uses the real and imaginary parts of a complex number as an...
PDF
Pre-Cal 40S Slides November 27, 2007
DOCX
Arithmetic sequences and series[1]
PPTX
Permutations & combinations
PPTX
Permutations and Combinations (All Formulas)
PPTX
Polynomials - Possible pairs of Solutions
ODP
Arithmetic, geometric and harmonic progression
PPTX
2 2 synthetic division, remainder & factor theorems
PPTX
Preparation for checkpoint math paper 2
Lusbyn morales numeros reales
STAT: Counting principles(2)
properties of multiplication of integers
Mathematics In Plain Sight
PERMUTATION & COMBINATION
properties of addition and subtraction of integers
multiplication of integers
Class xi worksheet (9,10,11) two levels
Permutations & Combinations
Taylor slides
An argand diagram uses the real and imaginary parts of a complex number as an...
Pre-Cal 40S Slides November 27, 2007
Arithmetic sequences and series[1]
Permutations & combinations
Permutations and Combinations (All Formulas)
Polynomials - Possible pairs of Solutions
Arithmetic, geometric and harmonic progression
2 2 synthetic division, remainder & factor theorems
Preparation for checkpoint math paper 2
Ad

Viewers also liked (20)

PDF
My great summer
PDF
03.Controls in Windows Phone
PDF
08.Push Notifications
PDF
productronica Daily Day 1 / Tag 1
PPT
NAYADA Tempo product
PPT
Cyber covenant
PPTX
ShareCafé 1: Hou de Nieuwe Werker gemotiveerd
PPTX
Unit 11d Property disadvantages
PDF
Design Portfolio
PPTX
Stjärn 20101011
PPTX
Александр Хайтин_ От идеи бизнеса до IPO
PPTX
Информатизация образования. Итоги работы за 2009/2010 учебный год
PPTX
Everything You Wanted to Know About Account Management
PPT
Ppt mikelresolutions
PDF
Guide to Corporate Governance for Subvented Organisations - Executive Summary
PDF
Утилизация тепла
PPTX
Inbound Marketing - Analytics
PDF
Serap Mutlu Akbulut Korosu 1 Mart 2016 Konser Resimleri
PPTX
Как запустить рекламную кампанию?
My great summer
03.Controls in Windows Phone
08.Push Notifications
productronica Daily Day 1 / Tag 1
NAYADA Tempo product
Cyber covenant
ShareCafé 1: Hou de Nieuwe Werker gemotiveerd
Unit 11d Property disadvantages
Design Portfolio
Stjärn 20101011
Александр Хайтин_ От идеи бизнеса до IPO
Информатизация образования. Итоги работы за 2009/2010 учебный год
Everything You Wanted to Know About Account Management
Ppt mikelresolutions
Guide to Corporate Governance for Subvented Organisations - Executive Summary
Утилизация тепла
Inbound Marketing - Analytics
Serap Mutlu Akbulut Korosu 1 Mart 2016 Konser Resimleri
Как запустить рекламную кампанию?
Ad

Similar to Section3 2 (20)

PPTX
Counting Theroy .pptx
PPT
Combinatorics: Permutation and Combination
PDF
Counting -Methods-probabilities-theory prst2
PPTX
chapter five.pptx
PPTX
Counting, mathematical induction and discrete probability
PPTX
Permutations and Combinations(For Class 11)
PDF
9.5 Counting Principles
PPTX
Counting DM
PPTX
COUNTING (permutation and combination).pptx
PPT
Discrete Math Ch5 counting + proofs
PDF
Probability, Statistic & Random Process - Lecture 2 - Counting.pdf
PPTX
A presentation on Counting Principles.pptx
PDF
Chapter-3-Sample-Space-of-Experiment.pdf
PPT
SRWColAlg6_09_01.ppt
PDF
CHAPTER 1_TDM1023_07242222222222222222.pdf
PPTX
MFCS UNIT-III.pptx
PPTX
Counting, pigeonhole, permuntation, Permutations and Combination ,Binomial T...
PPTX
Day3_PnC.pptx
PPTX
Permutation and combination
Counting Theroy .pptx
Combinatorics: Permutation and Combination
Counting -Methods-probabilities-theory prst2
chapter five.pptx
Counting, mathematical induction and discrete probability
Permutations and Combinations(For Class 11)
9.5 Counting Principles
Counting DM
COUNTING (permutation and combination).pptx
Discrete Math Ch5 counting + proofs
Probability, Statistic & Random Process - Lecture 2 - Counting.pdf
A presentation on Counting Principles.pptx
Chapter-3-Sample-Space-of-Experiment.pdf
SRWColAlg6_09_01.ppt
CHAPTER 1_TDM1023_07242222222222222222.pdf
MFCS UNIT-III.pptx
Counting, pigeonhole, permuntation, Permutations and Combination ,Binomial T...
Day3_PnC.pptx
Permutation and combination

Recently uploaded (20)

PPTX
Chapter 5: Probability Theory and Statistics
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
2018-HIPAA-Renewal-Training for executives
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
STKI Israel Market Study 2025 version august
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PPTX
TEXTILE technology diploma scope and career opportunities
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
Chapter 5: Probability Theory and Statistics
Taming the Chaos: How to Turn Unstructured Data into Decisions
A proposed approach for plagiarism detection in Myanmar Unicode text
Final SEM Unit 1 for mit wpu at pune .pptx
2018-HIPAA-Renewal-Training for executives
OpenACC and Open Hackathons Monthly Highlights July 2025
sbt 2.0: go big (Scala Days 2025 edition)
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
STKI Israel Market Study 2025 version august
Module 1.ppt Iot fundamentals and Architecture
1 - Historical Antecedents, Social Consideration.pdf
Improvisation in detection of pomegranate leaf disease using transfer learni...
A contest of sentiment analysis: k-nearest neighbor versus neural network
Zenith AI: Advanced Artificial Intelligence
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
TEXTILE technology diploma scope and career opportunities
The influence of sentiment analysis in enhancing early warning system model f...
NewMind AI Weekly Chronicles – August ’25 Week III

Section3 2

  • 1. Lecture 9 June 18, 2003
  • 2. Combinatorics The branch of mathematics studying the enumeration, combination, and permutation of sets of elements and the mathematical relations which characterize these properties. Examples of combinatorial problems: Scheduling classes (or tournament play); Determining cheapest route for a multi-city tour; Tracing a figure without picking up your pencil or repeating a line; Determining the odds of a full house in poker; Designing reliable networks; Creating efficient computer programs.
  • 3. Examples Two dice are rolled, one black and one white, how many different rolls are possible? (white 1 is not black 1) How many ways are there to choose three officers from a club of 25 people?
  • 4. Multiplication Principle If a choice consists of two steps, of which one can be made in m ways and the other in n ways, then the whole choice can be made in m*n ways. Example--- For any finite set S, let |S| denote the number of elements in S. If A and B are finite sets, then |AXB|=|A|*|B|
  • 5. Multiplication Principle So we can generalize the multiplication principle for the “multiplication of choices” so that it applies to choices involving more than two steps. If in a sequence of n decisions, the number of choices for decision i does not depend on how the previous i-1 decisions are made, then the total number of ways to make the whole sequence of decisions is the product of the number of choices for each decision. So for k steps, where k is a positive integer, we have: If a choice consists of k steps, of which the first can be made in n 1 ways, the second in n 2 ways, …, and the k th in n k ways, then the whole choice can be made in n 1 ·n 2 ·…·n k ways.
  • 6. Addition Principle If a set can be partitioned into disjoint subsets, then the number of objects in the set =  the sum of the number of objects in each of its parts. Example : The number of people in this room equals the number of men plus the number of women.
  • 7. Addition Principle(cont.) The number of subsets of {1,2,3,4} equals the number of 0-element subsets  =1 the number of 1-element subsets {1},{2}, {3},{4} =4 the number of 2-element subsets {1,2}, {1,3}, {1,4}, {2,3}, {2,4}, {3,4} =6 the number of 3-element subsets {1,2,3}, {1,2,4}, {1,3,4}, {2,3,4} =4 the number of 4-element subsets {1,2,3,4} =1 + TOTAL =16
  • 8. Addition Principle(cont.) A child is allowed to choose one jellybean out of two jellybeans, one red and one black, and a gummy bear out of three gummy bears, yellow, green, and white. How many different sets of candy can the child have?
  • 9. Using the principles together Now we can use both principles at the same time: If a woman has seven blouses, five skirts and nine dresses, how many different outfits does she have? (7*5)+9 How many three-digit integers are even?
  • 10. Decision Trees If the multiplication principle doesn’t apply we can use less regular decision trees. We can use the multiplication principle, when the number of outcomes at any level of the tree is the same throughout that level. Number of outcomes of an event based on a series of possible choices. Example: Draw the decision tree for the number of strings X’s, Y’s and Z’s with length 3 that do not have a Z following a Y.
  • 11. Principles in Set Now let’s see some properties: For any finite set S, let |S| denote the number of elements in S. If A and B are finite sets, then |AXB| = |A| • |B| Let A and B be disjoint finite sets. Then |AUB| = |A|+|B| If A and B are finite sets, then |A-B| = |A| - |A  B| and |A-B| = |A| - |B| if B  A
  • 12. Principle of Inclusion and Exclusion If A and B are any subset of a universal set S, then {A-B}, {B-A}, {A  B} are mutually disjoint sets. Venn diagram representation What is (A-B)  (B-A)  (A  B)? And |(A-B)  (B-A)  (A  B) | ? So finally |A  B| = |A| + |B| - |A  B|
  • 13. Principle of Inclusion and Exclusion (cont.) So if we’re dealing with two sets: |A  B| = |A| + |B| - |A  B| And if we are dealing with three sets: |A  B  C| = |A| + |B| + |C| - |A  B| - |A  C| - |B  C| + |A  B  C | What is the venn gram representation of it?
  • 14. So the pattern is: If we have n sets, we should add the number of elements in the single sets, subtract the number of elements in the intersection of two sets, add the number of elements in the intersection of three sets, subtract the number of elements in the intersection of four sets, and so on. Principle of Inclusion and Exclusion Principle of Inclusion and Exclusion (cont.)
  • 15. Principle of Inclusion and Exclusion (cont.) How to prove it? Mathmatical induction. Base case…… Assumption ….. Show …. (Page 205-206)
  • 16. Principle of Inclusion and Exclusion (cont.) Example– A survey of 150 college students reveals that 83 own automobiles, 97 own bikes, 28 own motorcycles, 53 own a car and a bike, 14 own a car and a motorcycles, 7 own a bike and a motorcycle, and 2 own all three. Question– How many students own only a bike? How many students do not own any of the three?
  • 17. Pigeonhole Principle If more than k items are placed into k bins, then at least one bin contains more than one item. Example– How many times must a single die be rolled in order to guarantee getting the same value twice?
  • 18. Excercise Exercise 3.2– 28, 48, 49,58-64,69, 72 Exercise 3.3– 7, 11, 15, 19