Lesson 4 - Counting Theory (Part 1)
Lesson 4 - Counting Theory (Part 1)
LESSON 4: PART 1
COUNTING THEORY
TOPICS COVERED
Basic of Counting
Permutations
Combinations
Discrete Probability
objectives.
define basic counting principles and apply them in
some counting problems
apply permutation to solve counting problems
apply combination to solve counting problems
enumerate discrete probability techniques
define probability theory and apply them in proving
mathematical statements.
Counting seems so easy. It goes like 1, 2, 3, 4 …
answers:
He has 3 + 2 = 5 ways to get to downtown Chicago.
(Rule of sum)
From there, he has 2 + 3 = 5 ways to get to
Milwaukee. (Rule of sum)
Hence, he has 5 x 5 = 25 ways to get to Milwaukee
in total. (Rule of product)
try it yourself!
There are 3 flights from California to France, and 2
flights from France to India. Sanjeet wants to fly from
California to France and then to India.
How many choices does he have for his flight plan?
a) 3 b) 8 c) 2 d) 6
answer: 6!
By the rule of product, there are 3 (flights California
to France) x 2 (flights from France to India) = 6
choices he have for his flight plan from California to
India.
Note: When you eat a course, you only pick one of the choices.
TRY IT YOURSELF BEFORE CHECKING THE
ANSWER AND THE SOLUTION.
The answer is 329.
answer:
Dresses and jewelries can be worn all at the same
time. So, in this case, we will use the rule of product.
Given that we have 3 dresses, and 4 pairs of jewelry, 3
x 4 = 12. So, there will be 12 outfits.
answer:
It is important to analyze the problem. In this case,
the variables we need is a bit string. Bit strings
compose only of 1 or 0. The length must be 7. We
must have 7 seats which is all equivalent to 2. Why 2?
Because, the bit string is 1 and 0 only, and that is
equivalent to 2 bit strings.
solution: 2 x 2 x 2 x 2 x 2 x 2 x 2 = 128
example:
How many different car license plates can be made if
each plate contains a sequence of three uppercase
English letters followed by three digits?
answer:
The problem requires a three uppercase English
letters. We have 26 letters in the English alphabet.
Also, it requires three digits. We have 10 digits (0-9).
Since we need three uppercase letters, we need
three seats equivalent to 26. We also need three
digits. So, there must be 3 seats equivalent to 10.
solution -->
answer: 17, 576, 000 car license plates
The problem requires a three uppercase English
letters. We have 26 letters in the English alphabet.
Also, it requires three digits. We have 10 digits (0-9).
Since we need three uppercase letters, we need three
seats equivalent to 26. We also need three digits. So,
there must be 3 seats equivalent to 10.
solution:
26 x 26 x 26 x 10 x 10 x 10 = 17, 576, 000
the rule of product
The rule of product states that if there are n ways of doing
something, and m ways of doing another thing after that,
then there are n × m ways to perform both of these
actions. In other words, when choosing an option for n and
an option for m, there are n × m different ways to do both
actions.