Professional Documents
Culture Documents
SESSION-27
Application of Permutations
to
real world problems
11/19/22 Confidential 2
In this topic we learn how to count large
collections of things quickly and precisely.
For example:
• In a group of 10 people, if everyone shakes
hands with everyone else exactly once, how
many handshakes took place?
• How many ways can you distribute 10
cookies(Identical objects) to 7 boys?
11/19/22 Confidential 3
• Suppose a security password consists of eight
characters. Each of these characters must be a
digit or a letter or a symbol. Each password must
contain at least one digit, one letter and one
symbol. How many such passwords are there?
We will answer these questions in the next two
sessions.
11/19/22 Confidential 4
Permutation:
An arrangement that can be formed by taking
some or all of the finite set of objects.
Combination:
A selection that can be obtained by taking some
or all of the finite set of objects.
11/19/22 6
Circular permutation
11/19/22 Confidential 7
Linear permutations without repetition of
objects
Example-1
Determine the no. of 3 letter words can be
written using all the letters of the word KLU
without repetition?
Solution:
Writing 3 letter word is nothing but filling
three places in a row using K, L, and U.
First place can be placed by any of K, L, and U
in the following three ways.
K--; L--; U--
11/19/22 Confidential 8
Now, second place can be filled by the
11/19/22 Confidential 9
Now, third place can be filled in each of the
above six arrangements in one way.
Example-2.1
11/19/22 Confidential 12
Example-2.2
In how many ways the letters of the word COMPUTER be
arranged so that the vowels always come together ?
Solution: There are 8 letters in the given word. Since the
vowels must come together, we consider the vowels O,
U, and E as a single letter.
Now we have 6 letters and they can be arranged in 6!
ways.
But the three vowels can be arranged among them in
3! ways.
Example-3.1
11/19/22 Confidential 14
Solution:
Writing 2 letter words is same as filling two places in
a row.
11/19/22 Confidential 15
So both places can be filled in 6 x 5 = 30 ways
Therefore the total no. of two letter words =
30 = (6x5x4x3x2x1) / (4x3x2x1) = 6! / 4! = 6! / (6-2)!
11/19/22 Confidential 16
Formula-2
The total number of permutations of n distinct
objects taken ‘r’ at a time is P(n, r) or n p r
n!
n p r = (n r )!
11/19/22 Confidential 17
Permutations when repetition of objects is allowed
Example -4
11/19/22 Confidential 18
Solution:
Writing 4 bit strings is same as filling four places
in a row with 0 or 1, allowing repetition
First place can be filled in 2 ways with 0 or 1
Second place can be filled in 2 ways with 0 or 1
Inclusion-Exclusion principle
Suppose that a task can be done in n1 or in n2 ways,
but that some of the set of n1 ways to do the task are
the same as some of the n2 other ways to do the task.
11/19/22 Confidential 21
In this situation adding n1 and n2 leads to an over
count, because the ways to do the task that are
common to both the tasks are counted twice.
11/19/22 Confidential 22
Example-6 .1
11/19/22 Confidential 23
Finally, pick one of the remaining 3 elements
to be an image of 3.
So, the total number of injections is 5 x 4 x 3
=P(5,3)
In other words, we have to select 3 elements out
of 5 elements from B and map them to the 3
elements of A. This can be done in P(5,3) ways.
11/19/22 Confidential 24
Example-6.2
A set has 5 distinct elements and set B has 8 elements.
How many injections from A to be possible ?
Solution: P(8,5)
Formula -3.1
If set A has r elements and set B has n elements Then
the total number of injections from set A to set B is
P(n, r).
11/19/22 Confidential 25
Example-6.3
Let A={a,b,c,d,e} and B={1,2,3}. How many functions
are formed from A to B ?
Solution: To write a function, one element from set B
can be selected to be an image of ‘ a’ in three ways.
11/19/22 Confidential 26
Formula-3.2
If set A has r elements and set B has n elements then
the total number of functions from A to B is nr
i.e. (Elements of co-domain) elements of domain
Example-7.1
Let A={1,2,3,4} and B={a,b,c,d}. Then how many
functions from A to B are bijections ?
Solution:
To write a bijective function, we need to pick an
element from 4 elements of the co-domain B to be
an image of 1. (There are 4 choices).
11/19/22 Confidential 27
Next we pick an element from the remaining 3
elements of co-domain to be an image of 2.
(There are 3 choices.)
11/19/22 Confidential 28
Note:
Bijections from A to B exist only when both sets have
same number of elements.
Formula -4
Let n(A)=n(B)=m then the number of bijections from A
to B is m!
11/19/22 Confidential 29
Formula -5
No. of ways of arranging n objects of which r are the
same is given by n!/r!
Example-8 .1
How many words can be formed using all the letters of
the word GREEN?
Solution: There are 5 letters in the word GREEN of
which 2 are same.
So, the total number of permutations = 5!/2! = 60
11/19/22 Confidential 30
Formula -6
The total no. of arrangements of n objects out of
which ‘p’ are of one type, ‘q’ of second type and ‘r’ of
third type is given by n!/ (P!.q!.r!)
Example-9.1
How many words can be formed using all the letters
of the word MATHEMATICS?
Solution:
In the word MATHEMATICS, there are 2 M’s , 2 T’s,
2 A’s and the remaining 5 characters are distinct.
11/19/22 Confidential 32