Let's Count: Seriously
Let's Count: Seriously
Seriously
Dr Aamir Hashmi
Email: [email protected]
Office Hours:
-My office:
Tuesday: 14:00 – 15:30
Cabin-3, F-102, B-Building
Wednesday: 1230 – 1400
Thursday: 14:00 – 15:30
Friday: 15:00 – 17:00
or by appointment (email)
Recap
•We
covered some important results:
• Number of subsets of an n–set
• Factorial of 8 = 8!
Try to solve this one?
You have one minute to answer
• In how many ways you can arrange these fruits?
• In how many ways, we can make 3 people stand out of these 8 people?
8x7x6
N!
Permutations (Section 1.6 of book)
• Recall Alice Party ..
How many ways can we seat n people on n chairs?
• So the question is to determine the number of ways objects can be ordered. The
solution found by the people at the party works in general:
• We can put any of the people in the first place; no matter whom we choose, we
have choices for the second.
So the number of ways to fill the first two positions is .
No matter how we have filled the first and second positions, there are choices for the
third position, so the number of ways to fill the first three positions is
.
Permutations (Section 1.6 of book)
• So the question is to determine the number of ways objects can be ordered.
The solution found by the people at the party works in general:
• We can put any of the people in the first place; no matter whom we choose,
we have choices for the second.
So the number of ways to fill the first two positions is .
No matter how we have filled the first and second positions, there are choices
for the third position, so the number of ways to fill the first three positions is
.
• It is clear that this argument goes on like this until all positions are filled.
• Thus the number of ways to fill all positions is
--- factorial of .
Permutations (Section 1.6 of book)
• If we have a list of n objects (an ordered set, where it is specified which
element is the first, second, etc.), and we rearrange them so that they are in
another order, this is called permuting them; the new order is called a
permutation of the objects.
Permutations (Section 1.6 of book)
Permutations (Section 1.6 of book)
Problems from Book – Do it by yourself
7x5x3x1
Number of Ordered Subsets (Section 1.7)
• At a competition of athletes, only the order of the first is recorded.
How many different outcomes does the competition have?
100 x 99 x 98 x … x 91
=
Number of Ordered Subsets (Section 1.7)
• At a competition of 100 athletes, only the order of the first 10 is recorded.
How many different outcomes does the competition have?
The first place can be won by any of the 100 athletes;
no matter who wins, there are 99 possible second place winners,
so the first two prizes can go 100 ・ 99 ways.
Given the first two, there are 98 athletes who can be third etc.
So the answer is 100 ・ 99 ・ ・ ・ 91.
Number of Ordered Subsets (Section 1.7)
• At a competition of 100 athletes, only the order of the first 10 is recorded.
How many different outcomes does the competition have?
So the answer is 100 ・ 99 ・ ・ ・ 91.
•= =
• We may write it as
Permutations
Permutations
Number of Subsets of a Given Size (Section 1.8)
• From here, we can easily derive one of the most important counting results.
Number of Subsets of a Given Size (Section 1.8)
• From here, we can easily derive one of the most important counting results.
• Proof:
Number of Subsets of a Given Size (Section 1.8)
• Proof:
Number of Subsets of a Given Size (Section 1.8)
• Proof:
Number of Subsets of a Given Size (Section 1.8)
• Try it at your own:
Number of Subsets of a Given Size (Section 1.8)
• Try it at your own:
Try to solve this one?
You have one minute to answer
• How many different values can function “f ( )” return?
Examples: Permutations --- Do it by yourself
Problem 1
Examples: Permutations --- Do it by yourself
Problem 2
Problem 3
Examples: Combinations --- Do it by yourself
Problem 4
Examples: Combinations --- Do it by yourself
Problem 5
Problem 6
Examples: Combinatorial Identities ---
Do it by yourself
Problem 7
Examples: Combinatorial Identities ---
Do it by yourself
Problem 8
Examples: Combinatorial Identities ---
Do it by yourself
Problem 9
Examples: Combinations --- Do it by yourself
Problem 10
Examples: Combinations --- Do it by yourself
Problem 11
Examples: Combinations --- Do it by yourself
Problem 12
• Stay Safe and Healthy
Gracias!!!
Note:
Assignment Deadline: Monday/Tuesday, – 17 November
Be ready for the quiz in next class
Youtube videos: (to help you in assignment)
• Click here: YouTube Playlist