5.14 (old book- C++) compute a random permutation - Doubt

#1

In the problem statement - the following sentence did not make sense to me :

“Since 27 is not divisible by 6, some permutations correspond to more ways than others, so not all permutations are equally likely”

Now since there are 27 different ways we can choose the elements - and each of these 27 are equally likely ( 1/27). Hence the probability of choosing one of the 6 valid permutations out of the 27 is also equally likely. Why why does it say not all permutations are equally likely?

0 Likes

#2

Hi @girishpai,

There are 27 possibilities, and there are only 6 possible permutations. So it is impossible to evenly distribute those 27 into those 6 possible permutations. Therefore, we say it is impossible.

0 Likes