Permutations
Permutation without Repetition
A permutation is an arrangement, or listing, of n distinct objects in which the order is important.
Total number of permutations in case of n elements:
Example:
In case of 4 elemts: {a,b,c,d}:
abcd | bacd | cabd | dabc |
abdc | badc | cadb | dacb |
acbd | bcad | cbad | dbac |
acdb | bcda | cbda | dbca |
adbc | bdac | cdab | dcab |
adcb | bdca | cdba | dcba |
Permutation with Repetition
A permutation is an arrangement, or listing, of n objects in which the order is important. The elements are repeated. Number of repetations:
Total number of permutations:
Example:
In case of 7 elemet: {a,a,a,a,b,b,c} first element repeats 4 times, second element repeats 2 times:
Total number of permutations:
Keywords: Permutation without Repetition with Repetition