Let be a uniformly random permutation of . We say is a if and for . For example, if , then in , is a transposition, as the fourth element is and the third element is . Find the expected number of transpositions in when .
Let be a uniformly random permutation of . We say is a if and for . For example, if , then in , is a transposition, as the fourth element is and the third element is . Find the expected number of transpositions in when .
Create a free account to answer questions and track your progress — across 2,000+ interview questions.
Get started for free