I was reading about "Naive" shuffling algorithm and the ideal one "Fisher-Yates" Algorithm. I got the difference and also got to know that Naive algorithm favours some permutations while it disfavors some.
Here is a blog that explains the difference about the them and everything that I said.
My question is about the naive shuffling algorithm. I would like to know which permutations is/are most likely and which is/are least likely to occur? This was the only thing not discussed in the blog.
For example :
If we shuffle 4 cards numbered 1 through 4 using this naive algorithm
2, 1, 4, 3 is most likely to occur of all 4^4 =(256) permutations that will be generated by naive algorithm. Likewise 4, 3, 2, 1 is least likely to occur.
For reference here is the "naive" shuffling algorithm:
arr := [1, 2, ..., N]
for i in 1..N do
j := rand(1, N)
swap(arr[i], arr[j])
EDIT : Already checked this site for similar questions but got no answer that talks about probability of most and least likely permutations. They are all simply explaining the biased results of naive algorithm.