Professional Documents
Culture Documents
DISCRETE MATH MODULE 13 Fundamental Principles of Counting
DISCRETE MATH MODULE 13 Fundamental Principles of Counting
Fundamental
Principles of Counting
1. Sum Rule
2. Product Rule
3. Inclusion/ Exclusion
Counting
Assume we have a set of objects with
certain properties
Counting is used to determine the
number of these objects
Examples:
Number of available phone numbers with 7
digits in the local calling area
Number of possible match starters (football,
basketball) given the number of team
members and their positions
Basic counting rules
Counting problems may be hard, and
easy solutions are not obvious
Approach: simplify the solution by
decomposing the problem
8+5=13 ways.
Sum Rule Principle
Example: The mathematics department must
choose either a student or a faculty member as a
representative for a university committee. How
many choices are there for this representative if
there are 37 members of the mathematics faculty
and 83 mathematics majors and no one is both a
faculty member and a student?
Sum Rule Principle
Example: The mathematics department must
choose either a student or a faculty member as a
representative for a university committee. How
many choices are there for this representative if
there are 37 members of the mathematics faculty
and 83 mathematics majors and no one is both a
faculty member and a student?
8+5=13 ways.
Product Rule
Product rule .If some procedure can be
performed in many different ways & if FF. this
procedure, a 2nd procedure, a 3rd procedure
can be performed in different ways & so 4th ,
then the no. of ways the procedure can be
performed in order indicate is the product.
n x n, x n2 x … ways
Product Rule
Product rule .If some procedure can be
performed in many different ways & if FF. this
procedure, a 2nd procedure, a 3rd procedure
can be performed in different ways & so 4th ,
then the no. of ways the procedure can be
performed in order indicate is the product.
n x n, x n2 x … ways
Fundamental Principles Of Counting
Example:
1. A coin is tossed twice. Determine the number
of different possible outcome by using FPC & list
the outcomes using tree diagram.
Fundamental Principles Of Counting
Example:
2. A die is rolled & a coin is tossed. Determine
the number of different possible outcome using
free diagram & FPC.
Fundamental Principles Of Counting
Example:
3. A ECE 212 students are taking true/false test in
which they are supposed to answer 3 questions
Use FPC to determine the number of possible
answer in this test.
Show all possible answers using tree diagram.
Fundamental Principles Of Counting
Example:
4. Suppose a car plate number consists of 3
distinct letters followed by 3 digits with first digit
not zero. How many car plate numbers can be
made?
inclusion-exclusion principle
When counting the possibilities, we
can’t include a given outcome
more than once!
| A1 U A2 | = | A1 | + | A2 | - | A1 ∩ A2 |
| A1 U A2 | = | A1 | + | A2 | - | A1 ∩ A2 |
Let G,W,A denote the set for geeks, wannabees, and athletes, respectively.
Then by the principle of inclusion and exclusion, we have
which gives us
1000 = 310 + 650 + 440 - 170 - 150 - 180 + n(G∩W∩A )
1000=900 + n(G∩W∩A )
100 students will fit into all 3 categories
inclusion-exclusion example
We have 7 balls each of different colors (red, orange,
yellow, green, blue, indigo, violet) and 3 boxes each
of different shapes (tetrahedron, cube,
dodecahedron). How many ways are there to place
these 7 balls into the 3 boxes such that each box
contains at least 1 ball?
inclusion-exclusion example
Let X be the total number of ways we can distribute the balls if there are
no restrictions. Each ball can be placed into any one of the 3 boxes,
so ∣X∣=37.
Let T be the set of ways such that the tetrahedron box has no balls, C
the set of ways such that the cube box has no balls, and D the set of
ways such that the dodecahedron box has no balls. We would like to
find
∣X∣−∣T∪C∪D∣
We have |T| = |C| = |D| = 27, since the balls can be placed into one
of the two other boxes, and |T ∩ C | = |C ∩ D| = |D ∩ T| = 17,
since all the balls must be placed in the remaining box,
and ∣T∩C∩D∣=0.