SlideShare une entreprise Scribd logo
1  sur  20
Télécharger pour lire hors ligne
Introduction to Combinatorics

                               A.Benedict Balbuena
               Institute of Mathematics, University of the Philippines in Diliman



                                           11.1.2008




A.B.C.Balbuena (UP-Math)            Introduction to Combinatorics                   11.1.2008   1 / 10
Addition Rule

Theorem
If A1 , A2 , ..., An are disjoint sets (n < ∞, n ∈ N) then:

                 |A1 ∪ A2 ∪ ... ∪ An | = |A1 | + |A2 | + ... + |An |

                             Works only for disjoint sets

One seat in a presidential working commitee is reserved for either a
senator or a party-list representative. How many possible choices are
there for the seat if there are 23 senators and 27 party-list
representatives?


  A.B.C.Balbuena (UP-Math)         Introduction to Combinatorics       11.1.2008   2 / 10
Addition Rule

Theorem
If A1 , A2 , ..., An are disjoint sets (n < ∞, n ∈ N) then:

                 |A1 ∪ A2 ∪ ... ∪ An | = |A1 | + |A2 | + ... + |An |

                             Works only for disjoint sets

One seat in a presidential working commitee is reserved for either a
senator or a party-list representative. How many possible choices are
there for the seat if there are 23 senators and 27 party-list
representatives?


  A.B.C.Balbuena (UP-Math)         Introduction to Combinatorics       11.1.2008   2 / 10
Addition Rule

Theorem
If A1 , A2 , ..., An are disjoint sets (n < ∞, n ∈ N) then:

                 |A1 ∪ A2 ∪ ... ∪ An | = |A1 | + |A2 | + ... + |An |

                             Works only for disjoint sets

One seat in a presidential working commitee is reserved for either a
senator or a party-list representative. How many possible choices are
there for the seat if there are 23 senators and 27 party-list
representatives?


  A.B.C.Balbuena (UP-Math)         Introduction to Combinatorics       11.1.2008   2 / 10
Product Rule


Recall: A × B = {(a, b)|a ∈ A, b ∈ B}
Theorem
If A1 , A2 , ..., An are sets (n < ∞, n ∈ N) then:

                       |A1 × A2 × ... × An | = |A1 ||A2 |...|An |

Interpret as number of ways to pick one item from A1 , one item
from A2 , ..., one item from An




  A.B.C.Balbuena (UP-Math)         Introduction to Combinatorics    11.1.2008   3 / 10
Product Rule


Recall: A × B = {(a, b)|a ∈ A, b ∈ B}
Theorem
If A1 , A2 , ..., An are sets (n < ∞, n ∈ N) then:

                       |A1 × A2 × ... × An | = |A1 ||A2 |...|An |

Interpret as number of ways to pick one item from A1 , one item
from A2 , ..., one item from An




  A.B.C.Balbuena (UP-Math)         Introduction to Combinatorics    11.1.2008   3 / 10
Product Rule


Recall: A × B = {(a, b)|a ∈ A, b ∈ B}
Theorem
If A1 , A2 , ..., An are sets (n < ∞, n ∈ N) then:

                       |A1 × A2 × ... × An | = |A1 ||A2 |...|An |

Interpret as number of ways to pick one item from A1 , one item
from A2 , ..., one item from An




  A.B.C.Balbuena (UP-Math)         Introduction to Combinatorics    11.1.2008   3 / 10
Examples



 1   How many bit-strings are there of length n?
 2   How many functions are there from a set of m elements to
     one with n elements?
 3   How many possible mobile phone numbers are there in the
     Philippines?




 A.B.C.Balbuena (UP-Math)   Introduction to Combinatorics   11.1.2008   4 / 10
Inclusion-Exclusion Principle
Theorem
Let A, B be sets. Then:

                             |A ∪ B| = |A| + |B| − |A ∩ B|

Proof.
By definitions of set difference and intersection,
B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the
previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint,
|A ∪ B| = |A| + |B − A|.Replacing B − A, we have

                              |A ∪ B| = |A| + |B| − |A ∩ B|



How many bit strings of length of length 8 start with a 1 or end with 00?
  A.B.C.Balbuena (UP-Math)          Introduction to Combinatorics   11.1.2008   5 / 10
Inclusion-Exclusion Principle
Theorem
Let A, B be sets. Then:

                             |A ∪ B| = |A| + |B| − |A ∩ B|

Proof.
By definitions of set difference and intersection,
B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the
previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint,
|A ∪ B| = |A| + |B − A|.Replacing B − A, we have

                              |A ∪ B| = |A| + |B| − |A ∩ B|



How many bit strings of length of length 8 start with a 1 or end with 00?
  A.B.C.Balbuena (UP-Math)          Introduction to Combinatorics   11.1.2008   5 / 10
Inclusion-Exclusion Principle
Theorem
Let A, B be sets. Then:

                             |A ∪ B| = |A| + |B| − |A ∩ B|

Proof.
By definitions of set difference and intersection,
B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the
previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint,
|A ∪ B| = |A| + |B − A|.Replacing B − A, we have

                              |A ∪ B| = |A| + |B| − |A ∩ B|



How many bit strings of length of length 8 start with a 1 or end with 00?
  A.B.C.Balbuena (UP-Math)          Introduction to Combinatorics   11.1.2008   5 / 10
Inclusion-Exclusion Principle
Theorem
Let A, B be sets. Then:

                             |A ∪ B| = |A| + |B| − |A ∩ B|

Proof.
By definitions of set difference and intersection,
B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the
previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint,
|A ∪ B| = |A| + |B − A|.Replacing B − A, we have

                              |A ∪ B| = |A| + |B| − |A ∩ B|



How many bit strings of length of length 8 start with a 1 or end with 00?
  A.B.C.Balbuena (UP-Math)          Introduction to Combinatorics   11.1.2008   5 / 10
Inclusion-Exclusion Principle
Theorem
Let A, B be sets. Then:

                             |A ∪ B| = |A| + |B| − |A ∩ B|

Proof.
By definitions of set difference and intersection,
B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the
previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint,
|A ∪ B| = |A| + |B − A|.Replacing B − A, we have

                              |A ∪ B| = |A| + |B| − |A ∩ B|



How many bit strings of length of length 8 start with a 1 or end with 00?
  A.B.C.Balbuena (UP-Math)          Introduction to Combinatorics   11.1.2008   5 / 10
Inclusion-Exclusion Principle
Theorem
Let A, B be sets. Then:

                             |A ∪ B| = |A| + |B| − |A ∩ B|

Proof.
By definitions of set difference and intersection,
B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the
previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint,
|A ∪ B| = |A| + |B − A|.Replacing B − A, we have

                              |A ∪ B| = |A| + |B| − |A ∩ B|



How many bit strings of length of length 8 start with a 1 or end with 00?
  A.B.C.Balbuena (UP-Math)          Introduction to Combinatorics   11.1.2008   5 / 10
A password on a social networking site is six characters long,
where each character is a letter or a digit. Each password must
contain at least one digit.
How many passwords are there?
What if a password is six to eight chracters long?




  A.B.C.Balbuena (UP-Math)   Introduction to Combinatorics   11.1.2008   6 / 10
Suppose we have 3 blue shirts, 2 red shirts, and 1 green shirt.
We also have 2 gray pants and 3 brown pants. How many outfits
are possible? (Two pieces of clothing with the same color are
still considered distinct; assume that they have slightly different
shades.)
S := set of shirts
P := set of pants.
We form an outfit by picking one shirt and one pair of pants. By the
Product Rule, there are (6)(5) = 30 outfits.




  A.B.C.Balbuena (UP-Math)   Introduction to Combinatorics   11.1.2008   7 / 10
Suppose we have 3 blue shirts, 2 red shirts, and 1 green shirt.
We also have 2 gray pants and 3 brown pants. How many outfits
are possible? (Two pieces of clothing with the same color are
still considered distinct; assume that they have slightly different
shades.)
S := set of shirts
P := set of pants.
We form an outfit by picking one shirt and one pair of pants. By the
Product Rule, there are (6)(5) = 30 outfits.




  A.B.C.Balbuena (UP-Math)   Introduction to Combinatorics   11.1.2008   7 / 10
What if gray pants go with only blue and red shirts and brown
pants go with only green and red shirts. How many matching
outfits are there?
Count the number of matching outfits by counting the number of
mismatching outfits.
By the Product Rule, there are (2)(1) = 2 mismatching gray-green
outfits and (3)(3) = 9 mismatching brown-blue outfits. Therefore,
there are 3029 = 19 matching outfits.




  A.B.C.Balbuena (UP-Math)   Introduction to Combinatorics   11.1.2008   8 / 10
How many ways can the five game NBA Finals Series be
decided? (The series is decided when a team has three wins or
three losses)




  A.B.C.Balbuena (UP-Math)   Introduction to Combinatorics   11.1.2008   9 / 10
A.B.C.Balbuena (UP-Math)   Introduction to Combinatorics   11.1.2008   10 / 10

Contenu connexe

Tendances

ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ADVANCED   ALGORITHMS-UNIT-3-Final.pptADVANCED   ALGORITHMS-UNIT-3-Final.ppt
ADVANCED ALGORITHMS-UNIT-3-Final.pptssuser702532
 
Probability In Discrete Structure of Computer Science
Probability In Discrete Structure of Computer ScienceProbability In Discrete Structure of Computer Science
Probability In Discrete Structure of Computer SciencePrankit Mishra
 
Determinants
DeterminantsDeterminants
DeterminantsRivan001
 
Chapter 4 part4- General Probability Rules
Chapter 4 part4- General Probability RulesChapter 4 part4- General Probability Rules
Chapter 4 part4- General Probability Rulesnszakir
 
Basic Probability
Basic Probability Basic Probability
Basic Probability kaurab
 
Sequences and Series
Sequences and SeriesSequences and Series
Sequences and Seriessujathavvv
 
Permutations and Combinations
Permutations and CombinationsPermutations and Combinations
Permutations and CombinationsAngel Willis
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and DeterminantsAarjavPinara
 
mathematical induction
mathematical inductionmathematical induction
mathematical inductionankush_kumar
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmeticJanani S
 
Cramers rule
Cramers ruleCramers rule
Cramers rulemstf mstf
 
Probability basics and bayes' theorem
Probability basics and bayes' theoremProbability basics and bayes' theorem
Probability basics and bayes' theoremBalaji P
 

Tendances (20)

Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
 
probability
probabilityprobability
probability
 
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ADVANCED   ALGORITHMS-UNIT-3-Final.pptADVANCED   ALGORITHMS-UNIT-3-Final.ppt
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
 
Probability In Discrete Structure of Computer Science
Probability In Discrete Structure of Computer ScienceProbability In Discrete Structure of Computer Science
Probability In Discrete Structure of Computer Science
 
Determinants
DeterminantsDeterminants
Determinants
 
Chapter 4 part4- General Probability Rules
Chapter 4 part4- General Probability RulesChapter 4 part4- General Probability Rules
Chapter 4 part4- General Probability Rules
 
Combinations permutations
Combinations permutationsCombinations permutations
Combinations permutations
 
Basic Probability
Basic Probability Basic Probability
Basic Probability
 
Intro to probability
Intro to probabilityIntro to probability
Intro to probability
 
Sequences and Series
Sequences and SeriesSequences and Series
Sequences and Series
 
Permutations and Combinations
Permutations and CombinationsPermutations and Combinations
Permutations and Combinations
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
 
Discrete and Continuous Random Variables
Discrete and Continuous Random VariablesDiscrete and Continuous Random Variables
Discrete and Continuous Random Variables
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and Determinants
 
mathematical induction
mathematical inductionmathematical induction
mathematical induction
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
 
Set Theory Presentation
Set Theory PresentationSet Theory Presentation
Set Theory Presentation
 
Cramers rule
Cramers ruleCramers rule
Cramers rule
 
Probability basics and bayes' theorem
Probability basics and bayes' theoremProbability basics and bayes' theorem
Probability basics and bayes' theorem
 
graph theory
graph theory graph theory
graph theory
 

En vedette

Partitions of a number sb
Partitions of a number sbPartitions of a number sb
Partitions of a number sbScott Bailey
 
2012 scte presentation_lsc_updated_2
2012 scte presentation_lsc_updated_22012 scte presentation_lsc_updated_2
2012 scte presentation_lsc_updated_2lindachreno
 
Counting i (slides)
Counting i (slides)Counting i (slides)
Counting i (slides)IIUM
 
Math 1300: Section 7- 4 Permutations and Combinations
Math 1300: Section 7- 4  Permutations and CombinationsMath 1300: Section 7- 4  Permutations and Combinations
Math 1300: Section 7- 4 Permutations and CombinationsJason Aubrey
 
Roots of polynomial equations
Roots of polynomial equationsRoots of polynomial equations
Roots of polynomial equationsTarun Gehlot
 
4.4 probability of compound events
4.4 probability of compound events4.4 probability of compound events
4.4 probability of compound eventshisema01
 
12.4 probability of compound events
12.4 probability of compound events12.4 probability of compound events
12.4 probability of compound eventshisema01
 
Arithmetic sequence
Arithmetic sequenceArithmetic sequence
Arithmetic sequenceLeah Mel
 
Theories of Composition
Theories of CompositionTheories of Composition
Theories of Compositionmrsbauerart
 
Partition Of India
Partition Of IndiaPartition Of India
Partition Of IndiaBen Dover
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesisvikramlawand
 

En vedette (20)

Partitions of a number sb
Partitions of a number sbPartitions of a number sb
Partitions of a number sb
 
2012 scte presentation_lsc_updated_2
2012 scte presentation_lsc_updated_22012 scte presentation_lsc_updated_2
2012 scte presentation_lsc_updated_2
 
Counting i (slides)
Counting i (slides)Counting i (slides)
Counting i (slides)
 
1532 fourier series
1532 fourier series1532 fourier series
1532 fourier series
 
Math 1300: Section 7- 4 Permutations and Combinations
Math 1300: Section 7- 4  Permutations and CombinationsMath 1300: Section 7- 4  Permutations and Combinations
Math 1300: Section 7- 4 Permutations and Combinations
 
Roots of polynomial equations
Roots of polynomial equationsRoots of polynomial equations
Roots of polynomial equations
 
4.4 probability of compound events
4.4 probability of compound events4.4 probability of compound events
4.4 probability of compound events
 
12.4 probability of compound events
12.4 probability of compound events12.4 probability of compound events
12.4 probability of compound events
 
Arithmetic sequence
Arithmetic sequenceArithmetic sequence
Arithmetic sequence
 
Polynomial equations
Polynomial equationsPolynomial equations
Polynomial equations
 
Arithmetic Sequences
Arithmetic SequencesArithmetic Sequences
Arithmetic Sequences
 
Measures of Position
Measures of PositionMeasures of Position
Measures of Position
 
Recursion
RecursionRecursion
Recursion
 
Recursion
RecursionRecursion
Recursion
 
Recursion
RecursionRecursion
Recursion
 
Recursion
RecursionRecursion
Recursion
 
Measures of position
Measures of positionMeasures of position
Measures of position
 
Theories of Composition
Theories of CompositionTheories of Composition
Theories of Composition
 
Partition Of India
Partition Of IndiaPartition Of India
Partition Of India
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesis
 

Similaire à combinatorics

The principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariThe principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariDeogiri College Student
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdfJihudumie.Com
 
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdfMridulDhamija
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdfHamayonHelali
 
CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3David Wood
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theoryNittaya Noinan
 
Discrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfMuhammadUmerIhtisham
 

Similaire à combinatorics (12)

The principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariThe principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvari
 
2.2 Set Operations
2.2 Set Operations2.2 Set Operations
2.2 Set Operations
 
Pdm presentation
Pdm presentationPdm presentation
Pdm presentation
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdf
 
8-Sets-2.ppt
8-Sets-2.ppt8-Sets-2.ppt
8-Sets-2.ppt
 
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
 
CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Discrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdf
 
Section3 2
Section3 2Section3 2
Section3 2
 
Set Operations
Set OperationsSet Operations
Set Operations
 

Dernier

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 

Dernier (20)

DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 

combinatorics

  • 1. Introduction to Combinatorics A.Benedict Balbuena Institute of Mathematics, University of the Philippines in Diliman 11.1.2008 A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 1 / 10
  • 2. Addition Rule Theorem If A1 , A2 , ..., An are disjoint sets (n < ∞, n ∈ N) then: |A1 ∪ A2 ∪ ... ∪ An | = |A1 | + |A2 | + ... + |An | Works only for disjoint sets One seat in a presidential working commitee is reserved for either a senator or a party-list representative. How many possible choices are there for the seat if there are 23 senators and 27 party-list representatives? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 2 / 10
  • 3. Addition Rule Theorem If A1 , A2 , ..., An are disjoint sets (n < ∞, n ∈ N) then: |A1 ∪ A2 ∪ ... ∪ An | = |A1 | + |A2 | + ... + |An | Works only for disjoint sets One seat in a presidential working commitee is reserved for either a senator or a party-list representative. How many possible choices are there for the seat if there are 23 senators and 27 party-list representatives? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 2 / 10
  • 4. Addition Rule Theorem If A1 , A2 , ..., An are disjoint sets (n < ∞, n ∈ N) then: |A1 ∪ A2 ∪ ... ∪ An | = |A1 | + |A2 | + ... + |An | Works only for disjoint sets One seat in a presidential working commitee is reserved for either a senator or a party-list representative. How many possible choices are there for the seat if there are 23 senators and 27 party-list representatives? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 2 / 10
  • 5. Product Rule Recall: A × B = {(a, b)|a ∈ A, b ∈ B} Theorem If A1 , A2 , ..., An are sets (n < ∞, n ∈ N) then: |A1 × A2 × ... × An | = |A1 ||A2 |...|An | Interpret as number of ways to pick one item from A1 , one item from A2 , ..., one item from An A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 3 / 10
  • 6. Product Rule Recall: A × B = {(a, b)|a ∈ A, b ∈ B} Theorem If A1 , A2 , ..., An are sets (n < ∞, n ∈ N) then: |A1 × A2 × ... × An | = |A1 ||A2 |...|An | Interpret as number of ways to pick one item from A1 , one item from A2 , ..., one item from An A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 3 / 10
  • 7. Product Rule Recall: A × B = {(a, b)|a ∈ A, b ∈ B} Theorem If A1 , A2 , ..., An are sets (n < ∞, n ∈ N) then: |A1 × A2 × ... × An | = |A1 ||A2 |...|An | Interpret as number of ways to pick one item from A1 , one item from A2 , ..., one item from An A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 3 / 10
  • 8. Examples 1 How many bit-strings are there of length n? 2 How many functions are there from a set of m elements to one with n elements? 3 How many possible mobile phone numbers are there in the Philippines? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 4 / 10
  • 9. Inclusion-Exclusion Principle Theorem Let A, B be sets. Then: |A ∪ B| = |A| + |B| − |A ∩ B| Proof. By definitions of set difference and intersection, B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint, |A ∪ B| = |A| + |B − A|.Replacing B − A, we have |A ∪ B| = |A| + |B| − |A ∩ B| How many bit strings of length of length 8 start with a 1 or end with 00? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 5 / 10
  • 10. Inclusion-Exclusion Principle Theorem Let A, B be sets. Then: |A ∪ B| = |A| + |B| − |A ∩ B| Proof. By definitions of set difference and intersection, B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint, |A ∪ B| = |A| + |B − A|.Replacing B − A, we have |A ∪ B| = |A| + |B| − |A ∩ B| How many bit strings of length of length 8 start with a 1 or end with 00? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 5 / 10
  • 11. Inclusion-Exclusion Principle Theorem Let A, B be sets. Then: |A ∪ B| = |A| + |B| − |A ∩ B| Proof. By definitions of set difference and intersection, B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint, |A ∪ B| = |A| + |B − A|.Replacing B − A, we have |A ∪ B| = |A| + |B| − |A ∩ B| How many bit strings of length of length 8 start with a 1 or end with 00? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 5 / 10
  • 12. Inclusion-Exclusion Principle Theorem Let A, B be sets. Then: |A ∪ B| = |A| + |B| − |A ∩ B| Proof. By definitions of set difference and intersection, B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint, |A ∪ B| = |A| + |B − A|.Replacing B − A, we have |A ∪ B| = |A| + |B| − |A ∩ B| How many bit strings of length of length 8 start with a 1 or end with 00? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 5 / 10
  • 13. Inclusion-Exclusion Principle Theorem Let A, B be sets. Then: |A ∪ B| = |A| + |B| − |A ∩ B| Proof. By definitions of set difference and intersection, B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint, |A ∪ B| = |A| + |B − A|.Replacing B − A, we have |A ∪ B| = |A| + |B| − |A ∩ B| How many bit strings of length of length 8 start with a 1 or end with 00? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 5 / 10
  • 14. Inclusion-Exclusion Principle Theorem Let A, B be sets. Then: |A ∪ B| = |A| + |B| − |A ∩ B| Proof. By definitions of set difference and intersection, B = (A ∩ B) ∪ (B − A).Now, A ∩ B and B − A are disjoint sets.By the previous thm, |B| = |A ∩ B| + |B − A|.Since A and B − A are disjoint, |A ∪ B| = |A| + |B − A|.Replacing B − A, we have |A ∪ B| = |A| + |B| − |A ∩ B| How many bit strings of length of length 8 start with a 1 or end with 00? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 5 / 10
  • 15. A password on a social networking site is six characters long, where each character is a letter or a digit. Each password must contain at least one digit. How many passwords are there? What if a password is six to eight chracters long? A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 6 / 10
  • 16. Suppose we have 3 blue shirts, 2 red shirts, and 1 green shirt. We also have 2 gray pants and 3 brown pants. How many outfits are possible? (Two pieces of clothing with the same color are still considered distinct; assume that they have slightly different shades.) S := set of shirts P := set of pants. We form an outfit by picking one shirt and one pair of pants. By the Product Rule, there are (6)(5) = 30 outfits. A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 7 / 10
  • 17. Suppose we have 3 blue shirts, 2 red shirts, and 1 green shirt. We also have 2 gray pants and 3 brown pants. How many outfits are possible? (Two pieces of clothing with the same color are still considered distinct; assume that they have slightly different shades.) S := set of shirts P := set of pants. We form an outfit by picking one shirt and one pair of pants. By the Product Rule, there are (6)(5) = 30 outfits. A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 7 / 10
  • 18. What if gray pants go with only blue and red shirts and brown pants go with only green and red shirts. How many matching outfits are there? Count the number of matching outfits by counting the number of mismatching outfits. By the Product Rule, there are (2)(1) = 2 mismatching gray-green outfits and (3)(3) = 9 mismatching brown-blue outfits. Therefore, there are 3029 = 19 matching outfits. A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 8 / 10
  • 19. How many ways can the five game NBA Finals Series be decided? (The series is decided when a team has three wins or three losses) A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 9 / 10
  • 20. A.B.C.Balbuena (UP-Math) Introduction to Combinatorics 11.1.2008 10 / 10