SlideShare a Scribd company logo
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

More Related Content

What's hot

Permutation and combination
Permutation and combinationPermutation and combination
Permutation and combination
sarath4droid
 
PERMUTATION & COMBINATION
PERMUTATION & COMBINATIONPERMUTATION & COMBINATION
PERMUTATION & COMBINATION
Pawan Mishra
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
rey castro
 
Permutation and Combination Maths
Permutation and Combination MathsPermutation and Combination Maths
Permutation and Combination Maths
Vardhan Jain
 
mathematical induction
mathematical inductionmathematical induction
mathematical induction
ankush_kumar
 
Quantitative Aptitude- Number System
Quantitative Aptitude- Number SystemQuantitative Aptitude- Number System
Quantitative Aptitude- Number System
Elizabeth alexander
 
Group Theory
Group TheoryGroup Theory
Group Theory
Durgesh Chahar
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
nielsoli
 
Permutations and combinations ppt
Permutations and combinations pptPermutations and combinations ppt
Permutations and combinations ppt
Priya !!!
 
Two way tables & venn diagrams
Two way tables & venn diagramsTwo way tables & venn diagrams
Two way tables & venn diagrams
amylute
 
Maths Project Power Point Presentation
Maths Project Power Point PresentationMaths Project Power Point Presentation
Maths Project Power Point Presentation
Kullegg Maria Regina Boys' Junior Lyceum
 
Discrete mathematic
Discrete mathematicDiscrete mathematic
Discrete mathematic
Naralaswapna
 
Combinatorics.pptx
Combinatorics.pptxCombinatorics.pptx
Combinatorics.pptx
HanachiTan
 
Presentation on the real number system
Presentation on the real number systemPresentation on the real number system
Presentation on the real number system
Anthony Abidakun
 
Pythagoras Theorem Explained
Pythagoras Theorem ExplainedPythagoras Theorem Explained
Pythagoras Theorem Explained
Passy World
 
Number Theory
Number TheoryNumber Theory
Number Theory
talha khattak
 
Unsolved Mathematical Problems
Unsolved Mathematical ProblemsUnsolved Mathematical Problems
Unsolved Mathematical Problems
Thiyagu K
 
Pigeonhole principle
Pigeonhole principlePigeonhole principle
Pigeonhole principle
Nivegeetha
 
Properties of Real Numbers
Properties of Real NumbersProperties of Real Numbers
Properties of Real Numbers
rfant
 
Maths Quiz
Maths QuizMaths Quiz
Maths Quiz
amit gupta
 

What's hot (20)

Permutation and combination
Permutation and combinationPermutation and combination
Permutation and combination
 
PERMUTATION & COMBINATION
PERMUTATION & COMBINATIONPERMUTATION & COMBINATION
PERMUTATION & COMBINATION
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
 
Permutation and Combination Maths
Permutation and Combination MathsPermutation and Combination Maths
Permutation and Combination Maths
 
mathematical induction
mathematical inductionmathematical induction
mathematical induction
 
Quantitative Aptitude- Number System
Quantitative Aptitude- Number SystemQuantitative Aptitude- Number System
Quantitative Aptitude- Number System
 
Group Theory
Group TheoryGroup Theory
Group Theory
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
 
Permutations and combinations ppt
Permutations and combinations pptPermutations and combinations ppt
Permutations and combinations ppt
 
Two way tables & venn diagrams
Two way tables & venn diagramsTwo way tables & venn diagrams
Two way tables & venn diagrams
 
Maths Project Power Point Presentation
Maths Project Power Point PresentationMaths Project Power Point Presentation
Maths Project Power Point Presentation
 
Discrete mathematic
Discrete mathematicDiscrete mathematic
Discrete mathematic
 
Combinatorics.pptx
Combinatorics.pptxCombinatorics.pptx
Combinatorics.pptx
 
Presentation on the real number system
Presentation on the real number systemPresentation on the real number system
Presentation on the real number system
 
Pythagoras Theorem Explained
Pythagoras Theorem ExplainedPythagoras Theorem Explained
Pythagoras Theorem Explained
 
Number Theory
Number TheoryNumber Theory
Number Theory
 
Unsolved Mathematical Problems
Unsolved Mathematical ProblemsUnsolved Mathematical Problems
Unsolved Mathematical Problems
 
Pigeonhole principle
Pigeonhole principlePigeonhole principle
Pigeonhole principle
 
Properties of Real Numbers
Properties of Real NumbersProperties of Real Numbers
Properties of Real Numbers
 
Maths Quiz
Maths QuizMaths Quiz
Maths Quiz
 

Viewers also liked

Partitions of a number sb
Partitions of a number sbPartitions of a number sb
Partitions of a number sb
Scott Bailey
 
2012 scte presentation_lsc_updated_2
2012 scte presentation_lsc_updated_22012 scte presentation_lsc_updated_2
2012 scte presentation_lsc_updated_2
lindachreno
 
Counting i (slides)
Counting i (slides)Counting i (slides)
Counting i (slides)
IIUM
 
1532 fourier series
1532 fourier series1532 fourier series
1532 fourier series
Dr Fereidoun Dejahang
 
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
Jason Aubrey
 
Roots of polynomial equations
Roots of polynomial equationsRoots of polynomial equations
Roots of polynomial equations
Tarun Gehlot
 
4.4 probability of compound events
4.4 probability of compound events4.4 probability of compound events
4.4 probability of compound events
hisema01
 
12.4 probability of compound events
12.4 probability of compound events12.4 probability of compound events
12.4 probability of compound events
hisema01
 
Arithmetic sequence
Arithmetic sequenceArithmetic sequence
Arithmetic sequence
Leah Mel
 
Polynomial equations
Polynomial equationsPolynomial equations
Polynomial equations
Arjuna Senanayake
 
Arithmetic Sequences
Arithmetic SequencesArithmetic Sequences
Arithmetic Sequences
Bruce Lightner
 
Measures of Position
Measures of PositionMeasures of Position
Recursion
RecursionRecursion
Recursion
Nalin Adhikari
 
Recursion
RecursionRecursion
Recursion
Abdur Rehman
 
Recursion
RecursionRecursion
Recursion
Asif Ali Raza
 
Permutation & Combination
Permutation & CombinationPermutation & Combination
Permutation & Combination
Puru Agrawal
 
Recursion
RecursionRecursion
Recursion
grahamwell
 
Measures of position
Measures of positionMeasures of position
Measures of position
Erlyn Geronimo
 
Theories of Composition
Theories of CompositionTheories of Composition
Theories of Composition
mrsbauerart
 
Partition Of India
Partition Of IndiaPartition Of India
Partition Of India
Ben Dover
 

Viewers also liked (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
 
Permutation & Combination
Permutation & CombinationPermutation & Combination
Permutation & Combination
 
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
 

Similar to 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 sharvari
Deogiri College Student
 
2.2 Set Operations
2.2 Set Operations2.2 Set Operations
2.2 Set Operations
showslidedump
 
Pdm presentation
Pdm presentationPdm presentation
Pdm presentation
Budiana Putu
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdf
Jihudumie.Com
 
8-Sets-2.ppt
8-Sets-2.ppt8-Sets-2.ppt
8-Sets-2.ppt
jaffarbikat
 
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
MridulDhamija
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
HamayonHelali
 
CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3
David Wood
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
Nittaya Noinan
 
Discrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdf
MuhammadUmerIhtisham
 
Section3 2
Section3 2Section3 2
Section3 2
guest783f1f80
 
Set Operations
Set OperationsSet Operations
Set Operations
Bilal Amjad
 

Similar to 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
 

Recently uploaded

Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStrDeep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
saastr
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 

Recently uploaded (20)

Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStrDeep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 

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