Upload
patience-leonard
View
253
Download
6
Embed Size (px)
Citation preview
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 11
Unit 7 Permutation and Combination
Unit 7 Permutation and Combination
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 22
Unit 7 Permutation and Combination
In this section, techniques will be
introduced for counting
the unordered selections of
distinct objects and
the ordered arrangements of objects
of a finite set.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 33
Unit 7 Permutation and Combination
7.1 Arrangements
The number of ways of arranging n unlike objects in a line is n !.
Note: n ! = n (n-1) (n-2) ···3 x 2 x 1
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 44
Unit 7 Permutation and Combination
Example 7.1-1
It is known that the password on a computer system contain
the three letters A, B and C
followed by the six digits 1, 2, 3, 4, 5, 6.
Find the number of possible passwords.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 55
Unit 7 Permutation and Combination
Solution 7.1-1There are 3! ways of arranging the letters A, B and C, and
6! ways of arranging the digits 1, 2, 3, 4, 5, 6.
Therefore the total number of possible passwords is
3! x 6! = 4320.
i.e. 4320 different passwords can be formed.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 66
Unit 7 Permutation and Combination
Like ObjectsThe number of ways of arranging in a line
n objects,
of which p are alike, is
!
!
p
n
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 77
Unit 7 Permutation and Combination
The result can be extended as follows:The number of ways of arranging in a line n objects
of which p of one type are alike,
q of a second type are alike,
r of a third type are alike, and so on, is
!!!!rqpn
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 88
Unit 7 Permutation and Combination
Example 7.1-2
Find the number of ways that the letters of the word
STATISTICS
can be arranged.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 99
Unit 7 Permutation and Combination
Solution 7.1-2
The word STATISTICS contains
10 letters, in which
S occurs 3 times,
T occurs 3 times and
I occurs twice.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1010
Unit 7 Permutation and Combination
Therefore the number of ways is
50400!2!3!3
!10
That is, there are 50400 ways of arranging the letter in the word STATISTICS.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1111
Unit 7 Permutation and Combination
Example 7.1-3
A six-digit number is formed from the digits
1, 1, 2, 2, 2, 5 and
repetitions are not allowed.
How many these six-digit numbers
are divisible by 5?
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1212
Unit 7 Permutation and Combination
Solution 7.1-3If the number is divisible by 5 then it must end with the digit
5.
Therefore the number of these six-digit numbers which are divisible by 5 is equal to the number of ways of arranging the digits
1, 1, 2, 2, 2.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1313
Unit 7 Permutation and Combination
Then, the required number is
10!3!2
!5
That is, there are 10 of these six-digit numbers are divisible by 5.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1414
Unit 7 Permutation and Combination
7.2 Permutations
A permutation of a set of distinct objects is an ordered arrangement of these objects.
An ordered arrangement of r elements of a set is called an r-permutation.
The number of r-permutations of a set with n distinct elements,
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1515
Unit 7 Permutation and Combination
Note: 0! is defined to 1, so
!!0
!
!
!, n
n
nn
nnnP
121!
!,
rnnnn
rn
nrnP
i.e. the number of permutations of r objects taken from n unlike objects is:
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1616
Unit 7 Permutation and Combination
Example 7.2-1
Find the number of ways of placing
3 of the letters A, B, C, D, E
in 3 empty spaces.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1717
Unit 7 Permutation and Combination
Solution 7.2-1
The first space can be filled in
5 ways.
The second space can be filled in
4 ways.
The third space can be filled in
3 ways.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1818
Unit 7 Permutation and Combination
Therefore there are
5 x 4 x 3 ways
of arranging 3 letters taken from 5 letters.
This is the number of permutations of 3 objects taken from 5 and
it is written as P(5, 3),
so P(5, 3) = 5 x 4 x 3 = 60.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 1919
Unit 7 Permutation and Combination
On the other hand, 5 x 4 x 3 could be written as
3,5!35
!5
!2
!5
12
12345P
Notice that the order in which the letters are arranged is important ---
ABC is a different permutation from ACB.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2020
Unit 7 Permutation and Combination
Example 7.2-2
How many different ways are there to select
one chairman and
one vice chairman
from a class of 20 students.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2121
Unit 7 Permutation and Combination
Solution 7.2-2
The answer is given by the number of
2-permutations of a set with 20 elements.
This is
P(20, 2) = 20 x 19 = 380
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2222
Unit 7 Permutation and Combination
7.3 Combinations
An r-combination of elements of a set is an unordered selection of r elements from the set.
Thus, an r-combination is simply a subset of the set with r elements.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2323
Unit 7 Permutation and Combination
The number of r-combinations of a set with n elements,
where n is a positive integer and
r is an integer with 0 <= r <= n,
i.e. the number of combinations of r objects from n unlike objects is
!!
!,
rnr
nrnC
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2424
Unit 7 Permutation and Combination
Example 7.3-1
How many different ways are there to select two class representatives from a class of 20 students?
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2525
Unit 7 Permutation and Combination
Solution 7.3-1
The answer is given by the number of 2-combinations of a set with 20 elements.
The number of such combinations is
190!18!2
!202,20 C
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2626
Unit 7 Permutation and Combination
Example 7.3-2
A committee of 5 members is chosen at random from
6 faculty members of the mathematics department and
8 faculty members of the computer science department.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2727
Unit 7 Permutation and Combination
In how many ways can the committee be chosen if
(a) there are no restrictions;
(b) there must be more faculty members of the computer science department than the faculty members of the mathematics department.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2828
Unit 7 Permutation and Combination
Solution 7.3-2
(a) There are 14 members, from whom 5 are chosen.
The order in which they are chosen is not important.
So the number of ways of choosing the committee is
C(14, 5) = 2002.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 2929
Unit 7 Permutation and Combination
(b) If there are to be more
faculty members of the computer science department than
the faculty members of the mathematics department,
then the following conditions must be fulfilled.
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 3030
Unit 7 Permutation and Combination
(i) 5 faculty members of the computer science department.
The number of ways of choosing is
C(8, 5) = 56.
(ii) 4 faculty members of the computer science department and
1 faculty member of the mathematics department
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 3131
Unit 7 Permutation and Combination
The number of ways of choosing is
C(8, 4) x C(6, 1) = 70 x 6 = 420.
(iii) 3 faculty members of the computer science department and
2 faculty members of the mathematics department
The number of ways of choosing is
C(8, 3) x C(6, 2) = 56 x 15 = 840
IT DisiciplineIT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLPITD1111 Discrete Mathematics & Statistics STDTLP 3232
Unit 7 Permutation and Combination
Therefore the total number of ways of choosing the committee is
56 + 420 + 840 = 1316.