SlideShare una empresa de Scribd logo
1 de 5
Descargar para leer sin conexión
Set, Combinatorics, Probability &
                     Number Theory



           Mathematical Structures
            for Computer Science
                   Chapter 3	





Copyright © 2006 W.H. Freeman & Co.   MSCS Slides   Set, Combinatorics, Probability & Number Theory
Counting
     ●        The idea is to find out how many members are present in a finite
              set. Principles of counting answer the following kind of
              questions:	

              ■    How many four digit numbers can there be if repetition of numbers
                   are allowed and if repetition of numbers are not allowed?	

              ■    If a man has 4 suits, 8 shirts and 5 ties, how many outfits can he put
                   together?	

     ●        Multiplication Principle: If there are n possible outcomes for a
              first event and m possible outcomes for a second event, then there
              are n*m possible outcomes for the sequence of two events.	

     ●        Hence, from the multiplication principle, it follows that for two
              sets A and B	

          	

      	

      	

    	

       	

|A×B| = |A|*|B|	

     ●        A child is allowed to choose one jellybean out of two jellybeans,
              one red and one black, and one gummy bear out of three gummy
              bears, yellow, green, and white. How many different sets of
              candy can the child have?

Section 3.2                                       Counting                                 1
Example: Multiplication Principle

     ●        There are 2×3=6 or 3×2=6 possible outcomes as seen
              from the following figures	





Section 3.2                            Counting                    2
Addition Principle
     ●        Addition Principle: If A and B are disjoint events with n and m
              outcomes, respectively, then the total number of possible outcomes for
              event “A or B” is n+m.	

     ●        If A and B are disjoint sets, then |A ∪ B| = |A| + |B| using the addition
              principle.	

     ●        Prove that if A and B are finite sets then	

          	

      	

|A-B| = |A| - |A ∩ B| and |A-B| = |A| - |B| if B ⊆ A 	

                 	

(A-B) ∪ (A ∩ B) = (A ∩ Bʹ′) ∪ (A ∩ B) 	

                 	

 	

      	

= A ∩ (Bʹ′ ∪ B) 	

                 	

 	

      	

= A ∩ U	

                 	

 	

      	

= A	

     ●        Also, A-B and A ∩ B are disjoint sets, therefore using the addition
              principle	

                 	

 	

|A| = | (A-B) ∪ (A ∩ B) | = |A-B| + |A ∩ B|	

     ●        Hence, |A-B| = |A| - |A ∩ B| 	

     ●        If B ⊆ A, then A ∩ B = B	

     ●        Hence, |A-B| = |A| - |B| 	


Section 3.2                                              Counting                         3
Decision trees
     ●        Trees that provide the number of outcomes of an event based on
              a series of possible choices are called decision trees.	

     ●        Tony is pitching pennies. Each toss results in heads (H) or tails
              (T). How many ways can he toss the coin five times without
              having two heads in a row?




     ●        There are 13 possible outcomes as seen from the tree.

Section 3.2                                   Counting                            4

Más contenido relacionado

La actualidad más candente

Counting Project
Counting ProjectCounting Project
Counting Projectguestc5d3f2
 
Lusbyn morales numeros reales
Lusbyn morales numeros realesLusbyn morales numeros reales
Lusbyn morales numeros realesskyvb60
 
Factorials
FactorialsFactorials
Factorialsteamxxlp
 
Addsub poly
Addsub polyAddsub poly
Addsub polyzoffben
 
G6 m5-c-lesson 12-s
G6 m5-c-lesson 12-sG6 m5-c-lesson 12-s
G6 m5-c-lesson 12-smlabuski
 
Lessons 12 13 merged
Lessons 12 13 mergedLessons 12 13 merged
Lessons 12 13 mergedmlabuski
 
Probability Day 3 - Permutations and Combinations
Probability Day 3 - Permutations and CombinationsProbability Day 3 - Permutations and Combinations
Probability Day 3 - Permutations and CombinationsKate Nowak
 
5.4 Complex Numbers
5.4 Complex Numbers5.4 Complex Numbers
5.4 Complex Numbershisema01
 
Rational numbers ppt
Rational numbers pptRational numbers ppt
Rational numbers pptMathukutty1
 
A solution to Fermats last theorem using a colour analogy
A solution to Fermats last theorem using a colour analogyA solution to Fermats last theorem using a colour analogy
A solution to Fermats last theorem using a colour analogyAndrew Hennessey
 
Lesson 2 Nov 19 09
Lesson 2 Nov 19 09Lesson 2 Nov 19 09
Lesson 2 Nov 19 09ingroy
 
8th pre alg -l63
8th pre alg -l638th pre alg -l63
8th pre alg -l63jdurst65
 
Module 3 lesson 3
Module 3 lesson 3Module 3 lesson 3
Module 3 lesson 3NRWEG3
 
Multimedia Student Tutorial Exponents
Multimedia Student Tutorial ExponentsMultimedia Student Tutorial Exponents
Multimedia Student Tutorial Exponentsstac109
 

La actualidad más candente (20)

Counting Project
Counting ProjectCounting Project
Counting Project
 
Lusbyn morales numeros reales
Lusbyn morales numeros realesLusbyn morales numeros reales
Lusbyn morales numeros reales
 
Factorials
FactorialsFactorials
Factorials
 
Addsub poly
Addsub polyAddsub poly
Addsub poly
 
G6 m5-c-lesson 12-s
G6 m5-c-lesson 12-sG6 m5-c-lesson 12-s
G6 m5-c-lesson 12-s
 
Lessons 12 13 merged
Lessons 12 13 mergedLessons 12 13 merged
Lessons 12 13 merged
 
Probability Day 3 - Permutations and Combinations
Probability Day 3 - Permutations and CombinationsProbability Day 3 - Permutations and Combinations
Probability Day 3 - Permutations and Combinations
 
5.4 Complex Numbers
5.4 Complex Numbers5.4 Complex Numbers
5.4 Complex Numbers
 
Rational numbers ppt
Rational numbers pptRational numbers ppt
Rational numbers ppt
 
Complex nos demo 2
Complex nos demo 2Complex nos demo 2
Complex nos demo 2
 
A solution to Fermats last theorem using a colour analogy
A solution to Fermats last theorem using a colour analogyA solution to Fermats last theorem using a colour analogy
A solution to Fermats last theorem using a colour analogy
 
Lesson 2 Nov 19 09
Lesson 2 Nov 19 09Lesson 2 Nov 19 09
Lesson 2 Nov 19 09
 
Wordproblem
WordproblemWordproblem
Wordproblem
 
8th pre alg -l63
8th pre alg -l638th pre alg -l63
8th pre alg -l63
 
Cilc
CilcCilc
Cilc
 
Module 3 lesson 3
Module 3 lesson 3Module 3 lesson 3
Module 3 lesson 3
 
Exp 8 evidencia
Exp 8 evidenciaExp 8 evidencia
Exp 8 evidencia
 
Cr#4
Cr#4Cr#4
Cr#4
 
Lesson 2
Lesson 2Lesson 2
Lesson 2
 
Multimedia Student Tutorial Exponents
Multimedia Student Tutorial ExponentsMultimedia Student Tutorial Exponents
Multimedia Student Tutorial Exponents
 

Destacado

CPSC 125 Ch 4 Sec 4
CPSC 125 Ch 4 Sec 4CPSC 125 Ch 4 Sec 4
CPSC 125 Ch 4 Sec 4David Wood
 
Statistics lesson 1
Statistics   lesson 1Statistics   lesson 1
Statistics lesson 1Katrina Mae
 
CPSC 125 Ch 3 Sec 1
CPSC 125 Ch 3 Sec 1CPSC 125 Ch 3 Sec 1
CPSC 125 Ch 3 Sec 1David Wood
 
CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3David Wood
 
CPSC 125 Ch 1 sec 1
CPSC 125 Ch 1 sec 1CPSC 125 Ch 1 sec 1
CPSC 125 Ch 1 sec 1David Wood
 
Measures of central tendency
Measures of central tendencyMeasures of central tendency
Measures of central tendencyNilanjan Bhaumik
 
Probability distribution 2
Probability distribution 2Probability distribution 2
Probability distribution 2Nilanjan Bhaumik
 
PROJECT REPORT 2(2014)TATA PROJECT
PROJECT REPORT 2(2014)TATA PROJECTPROJECT REPORT 2(2014)TATA PROJECT
PROJECT REPORT 2(2014)TATA PROJECTNilanjan Bhaumik
 
Binomial probability distributions ppt
Binomial probability distributions pptBinomial probability distributions ppt
Binomial probability distributions pptTayab Ali
 
Statistics lesson 1
Statistics   lesson 1Statistics   lesson 1
Statistics lesson 1Katrina Mae
 
Permutations & Combinations
Permutations & CombinationsPermutations & Combinations
Permutations & Combinationsrfant
 
So You Wanna be a Startup CTO 20170301
So You Wanna be a Startup CTO 20170301So You Wanna be a Startup CTO 20170301
So You Wanna be a Startup CTO 20170301David Wood
 

Destacado (18)

Forecasting
ForecastingForecasting
Forecasting
 
CPSC 125 Ch 4 Sec 4
CPSC 125 Ch 4 Sec 4CPSC 125 Ch 4 Sec 4
CPSC 125 Ch 4 Sec 4
 
Statistics lesson 1
Statistics   lesson 1Statistics   lesson 1
Statistics lesson 1
 
CPSC 125 Ch 3 Sec 1
CPSC 125 Ch 3 Sec 1CPSC 125 Ch 3 Sec 1
CPSC 125 Ch 3 Sec 1
 
CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3CPSC 125 Ch 3 Sec 3
CPSC 125 Ch 3 Sec 3
 
Introductory sessions
Introductory sessionsIntroductory sessions
Introductory sessions
 
CPSC 125 Ch 1 sec 1
CPSC 125 Ch 1 sec 1CPSC 125 Ch 1 sec 1
CPSC 125 Ch 1 sec 1
 
Measures of central tendency
Measures of central tendencyMeasures of central tendency
Measures of central tendency
 
Probability+distribution
Probability+distributionProbability+distribution
Probability+distribution
 
Probability distribution 2
Probability distribution 2Probability distribution 2
Probability distribution 2
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
PROJECT REPORT 2(2014)TATA PROJECT
PROJECT REPORT 2(2014)TATA PROJECTPROJECT REPORT 2(2014)TATA PROJECT
PROJECT REPORT 2(2014)TATA PROJECT
 
Measures of dispersion
Measures of dispersionMeasures of dispersion
Measures of dispersion
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
Binomial probability distributions ppt
Binomial probability distributions pptBinomial probability distributions ppt
Binomial probability distributions ppt
 
Statistics lesson 1
Statistics   lesson 1Statistics   lesson 1
Statistics lesson 1
 
Permutations & Combinations
Permutations & CombinationsPermutations & Combinations
Permutations & Combinations
 
So You Wanna be a Startup CTO 20170301
So You Wanna be a Startup CTO 20170301So You Wanna be a Startup CTO 20170301
So You Wanna be a Startup CTO 20170301
 

Similar a CPSC 125 Ch 3 Sec 2

11.1 combination and permutations
11.1 combination and permutations11.1 combination and permutations
11.1 combination and permutationsMark Ryder
 
Algebra unit 9.7
Algebra unit 9.7Algebra unit 9.7
Algebra unit 9.7Mark Ryder
 
11.1 11.1 combination and permutations
11.1 11.1 combination and permutations11.1 11.1 combination and permutations
11.1 11.1 combination and permutationsMark Ryder
 
counting techniques
counting techniquescounting techniques
counting techniquesUnsa Shakir
 
statiscs and probability math college to help student
statiscs and probability math college  to help studentstatiscs and probability math college  to help student
statiscs and probability math college to help studentcharlezeannprodonram
 
permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.pptBryanlibrado
 
AII12_Permutations_Combinations.ppt
AII12_Permutations_Combinations.pptAII12_Permutations_Combinations.ppt
AII12_Permutations_Combinations.pptLaeGadgude
 
permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.pptBryanlibrado
 
permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.pptJewelEstrada
 
permutations and combinations.ppt
permutations and combinations.pptpermutations and combinations.ppt
permutations and combinations.pptBryanlibrado
 
Lecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic andLecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic andmanishhmishra001
 
9.5 Counting Principles
9.5 Counting Principles9.5 Counting Principles
9.5 Counting Principlessmiller5
 
Permutation Combination
Permutation Combination Permutation Combination
Permutation Combination RizwanManzoor15
 
permutations-and-combinations for Quantitative Reasoning Class
permutations-and-combinations for Quantitative Reasoning Classpermutations-and-combinations for Quantitative Reasoning Class
permutations-and-combinations for Quantitative Reasoning ClassMrsWALKERRICHARDSON
 
PRINCIPLES OF COUNTING AND THEORIES OF PROBABILITY.pptx
PRINCIPLES OF COUNTING AND THEORIES OF PROBABILITY.pptxPRINCIPLES OF COUNTING AND THEORIES OF PROBABILITY.pptx
PRINCIPLES OF COUNTING AND THEORIES OF PROBABILITY.pptxtmccfrancisquarre
 
powerpoints probability.pptx
powerpoints probability.pptxpowerpoints probability.pptx
powerpoints probability.pptxcarrie mixto
 

Similar a CPSC 125 Ch 3 Sec 2 (20)

11.1 combination and permutations
11.1 combination and permutations11.1 combination and permutations
11.1 combination and permutations
 
Algebra unit 9.7
Algebra unit 9.7Algebra unit 9.7
Algebra unit 9.7
 
11.1 11.1 combination and permutations
11.1 11.1 combination and permutations11.1 11.1 combination and permutations
11.1 11.1 combination and permutations
 
counting techniques
counting techniquescounting techniques
counting techniques
 
statiscs and probability math college to help student
statiscs and probability math college  to help studentstatiscs and probability math college  to help student
statiscs and probability math college to help student
 
permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.ppt
 
AII12_Permutations_Combinations.ppt
AII12_Permutations_Combinations.pptAII12_Permutations_Combinations.ppt
AII12_Permutations_Combinations.ppt
 
permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.ppt
 
permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.ppt
 
permutations and combinations.ppt
permutations and combinations.pptpermutations and combinations.ppt
permutations and combinations.ppt
 
Lecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic andLecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic and
 
9.5 Counting Principles
9.5 Counting Principles9.5 Counting Principles
9.5 Counting Principles
 
Permutation Combination
Permutation Combination Permutation Combination
Permutation Combination
 
Counting
CountingCounting
Counting
 
cheyene ppt.pptx
cheyene ppt.pptxcheyene ppt.pptx
cheyene ppt.pptx
 
PermutATIONS
PermutATIONSPermutATIONS
PermutATIONS
 
permutations-and-combinations for Quantitative Reasoning Class
permutations-and-combinations for Quantitative Reasoning Classpermutations-and-combinations for Quantitative Reasoning Class
permutations-and-combinations for Quantitative Reasoning Class
 
Probability unit2.pptx
Probability unit2.pptxProbability unit2.pptx
Probability unit2.pptx
 
PRINCIPLES OF COUNTING AND THEORIES OF PROBABILITY.pptx
PRINCIPLES OF COUNTING AND THEORIES OF PROBABILITY.pptxPRINCIPLES OF COUNTING AND THEORIES OF PROBABILITY.pptx
PRINCIPLES OF COUNTING AND THEORIES OF PROBABILITY.pptx
 
powerpoints probability.pptx
powerpoints probability.pptxpowerpoints probability.pptx
powerpoints probability.pptx
 

Más de David Wood

Internet of Things (IoT) two-factor authentication using blockchain
Internet of Things (IoT) two-factor authentication using blockchainInternet of Things (IoT) two-factor authentication using blockchain
Internet of Things (IoT) two-factor authentication using blockchainDavid Wood
 
Returning to Online Privacy?
Returning to Online Privacy?Returning to Online Privacy?
Returning to Online Privacy?David Wood
 
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...David Wood
 
BlockSW 2019 Keynote
BlockSW 2019 KeynoteBlockSW 2019 Keynote
BlockSW 2019 KeynoteDavid Wood
 
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221David Wood
 
Privacy in the Smart City
Privacy in the Smart CityPrivacy in the Smart City
Privacy in the Smart CityDavid Wood
 
Controlling Complexities in Software Development
Controlling Complexities in Software DevelopmentControlling Complexities in Software Development
Controlling Complexities in Software DevelopmentDavid Wood
 
Privacy Concerns related to Verifiable Claims
Privacy Concerns related to Verifiable ClaimsPrivacy Concerns related to Verifiable Claims
Privacy Concerns related to Verifiable ClaimsDavid Wood
 
Implementing the Verifiable Claims data model
Implementing the Verifiable Claims data modelImplementing the Verifiable Claims data model
Implementing the Verifiable Claims data modelDavid Wood
 
Functional manipulations of large data graphs 20160601
Functional manipulations of large data graphs 20160601Functional manipulations of large data graphs 20160601
Functional manipulations of large data graphs 20160601David Wood
 
When Metaphors Kill
When Metaphors KillWhen Metaphors Kill
When Metaphors KillDavid Wood
 
Secularism in Australia
Secularism in AustraliaSecularism in Australia
Secularism in AustraliaDavid Wood
 
Meditations on Writing in Paradoxes, Oxymorons, and Pleonasms
Meditations on Writing in Paradoxes, Oxymorons, and PleonasmsMeditations on Writing in Paradoxes, Oxymorons, and Pleonasms
Meditations on Writing in Paradoxes, Oxymorons, and PleonasmsDavid Wood
 
Building a writer's platform with social media
Building a writer's platform with social mediaBuilding a writer's platform with social media
Building a writer's platform with social mediaDavid Wood
 
Summary of the Hero's Journey
Summary of the Hero's JourneySummary of the Hero's Journey
Summary of the Hero's JourneyDavid Wood
 
Open by Default
Open by DefaultOpen by Default
Open by DefaultDavid Wood
 
Lod Then, Now and Next 20110926
Lod Then, Now and Next 20110926Lod Then, Now and Next 20110926
Lod Then, Now and Next 20110926David Wood
 
Linked Data ROI 20110426
Linked Data ROI 20110426Linked Data ROI 20110426
Linked Data ROI 20110426David Wood
 
Introduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesIntroduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesDavid Wood
 
Introduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesIntroduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesDavid Wood
 

Más de David Wood (20)

Internet of Things (IoT) two-factor authentication using blockchain
Internet of Things (IoT) two-factor authentication using blockchainInternet of Things (IoT) two-factor authentication using blockchain
Internet of Things (IoT) two-factor authentication using blockchain
 
Returning to Online Privacy?
Returning to Online Privacy?Returning to Online Privacy?
Returning to Online Privacy?
 
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
 
BlockSW 2019 Keynote
BlockSW 2019 KeynoteBlockSW 2019 Keynote
BlockSW 2019 Keynote
 
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
 
Privacy in the Smart City
Privacy in the Smart CityPrivacy in the Smart City
Privacy in the Smart City
 
Controlling Complexities in Software Development
Controlling Complexities in Software DevelopmentControlling Complexities in Software Development
Controlling Complexities in Software Development
 
Privacy Concerns related to Verifiable Claims
Privacy Concerns related to Verifiable ClaimsPrivacy Concerns related to Verifiable Claims
Privacy Concerns related to Verifiable Claims
 
Implementing the Verifiable Claims data model
Implementing the Verifiable Claims data modelImplementing the Verifiable Claims data model
Implementing the Verifiable Claims data model
 
Functional manipulations of large data graphs 20160601
Functional manipulations of large data graphs 20160601Functional manipulations of large data graphs 20160601
Functional manipulations of large data graphs 20160601
 
When Metaphors Kill
When Metaphors KillWhen Metaphors Kill
When Metaphors Kill
 
Secularism in Australia
Secularism in AustraliaSecularism in Australia
Secularism in Australia
 
Meditations on Writing in Paradoxes, Oxymorons, and Pleonasms
Meditations on Writing in Paradoxes, Oxymorons, and PleonasmsMeditations on Writing in Paradoxes, Oxymorons, and Pleonasms
Meditations on Writing in Paradoxes, Oxymorons, and Pleonasms
 
Building a writer's platform with social media
Building a writer's platform with social mediaBuilding a writer's platform with social media
Building a writer's platform with social media
 
Summary of the Hero's Journey
Summary of the Hero's JourneySummary of the Hero's Journey
Summary of the Hero's Journey
 
Open by Default
Open by DefaultOpen by Default
Open by Default
 
Lod Then, Now and Next 20110926
Lod Then, Now and Next 20110926Lod Then, Now and Next 20110926
Lod Then, Now and Next 20110926
 
Linked Data ROI 20110426
Linked Data ROI 20110426Linked Data ROI 20110426
Linked Data ROI 20110426
 
Introduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesIntroduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF Vocabularies
 
Introduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesIntroduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF Vocabularies
 

CPSC 125 Ch 3 Sec 2

  • 1. Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co. MSCS Slides Set, Combinatorics, Probability & Number Theory
  • 2. Counting ●  The idea is to find out how many members are present in a finite set. Principles of counting answer the following kind of questions: ■  How many four digit numbers can there be if repetition of numbers are allowed and if repetition of numbers are not allowed? ■  If a man has 4 suits, 8 shirts and 5 ties, how many outfits can he put together? ●  Multiplication Principle: If there are n possible outcomes for a first event and m possible outcomes for a second event, then there are n*m possible outcomes for the sequence of two events. ●  Hence, from the multiplication principle, it follows that for two sets A and B |A×B| = |A|*|B| ●  A child is allowed to choose one jellybean out of two jellybeans, one red and one black, and one gummy bear out of three gummy bears, yellow, green, and white. How many different sets of candy can the child have? Section 3.2 Counting 1
  • 3. Example: Multiplication Principle ●  There are 2×3=6 or 3×2=6 possible outcomes as seen from the following figures Section 3.2 Counting 2
  • 4. Addition Principle ●  Addition Principle: If A and B are disjoint events with n and m outcomes, respectively, then the total number of possible outcomes for event “A or B” is n+m. ●  If A and B are disjoint sets, then |A ∪ B| = |A| + |B| using the addition principle. ●  Prove that if A and B are finite sets then |A-B| = |A| - |A ∩ B| and |A-B| = |A| - |B| if B ⊆ A (A-B) ∪ (A ∩ B) = (A ∩ Bʹ′) ∪ (A ∩ B) = A ∩ (Bʹ′ ∪ B) = A ∩ U = A ●  Also, A-B and A ∩ B are disjoint sets, therefore using the addition principle |A| = | (A-B) ∪ (A ∩ B) | = |A-B| + |A ∩ B| ●  Hence, |A-B| = |A| - |A ∩ B| ●  If B ⊆ A, then A ∩ B = B ●  Hence, |A-B| = |A| - |B| Section 3.2 Counting 3
  • 5. Decision trees ●  Trees that provide the number of outcomes of an event based on a series of possible choices are called decision trees. ●  Tony is pitching pennies. Each toss results in heads (H) or tails (T). How many ways can he toss the coin five times without having two heads in a row? ●  There are 13 possible outcomes as seen from the tree. Section 3.2 Counting 4