SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Destacado

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
 

Destacado (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
 

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

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

Último

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
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
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
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
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 

Último (20)

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
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
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
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
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 

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