Perfect shuffling with fewer lazy transpositions
Abstract
A lazy transposition is the random permutation that equals the identity with probability and the transposition with probability . How long must a sequence of independent lazy transpositions be if their composition is uniformly distributed? It is known that there are sequences of length , but are there shorter sequences? This was raised by Fitzsimons in 2011, and independently by Angel and Holroyd in 2018. We answer this question negatively by giving a construction of length , and consider some related questions.
1 Introduction
Let be the symmetric group on elements, and write for the transposition that swaps and , and for the identity permutation. A lazy transposition is the random permutation
The composition of a sequence of lazy transpositions is also a random permutation, and we will be interested in sequences which generate a uniformly random permutation. Let denote the minimum length for which there exists a sequence of independent lazy transpositions such that , the uniform distribution over . We will call such a sequence a transposition shuffle. These were first discussed on Stack Exchange in 2011 [stack], before being investigated in more depth by Angel and Holroyd in 2018 [angel2018perfect]. Both give constructions using lazy transpositions and ask if this is best possible.
Problem 1 (Fitzsimons [stack], Angel and Holroyd [angel2018perfect]).
Does for all ?
The main result of this paper is a new construction for shuffling with lazy transpositions which improves the constant in the upper bound of and answers Problem 1 in the negative.
Theorem 2.
There exists an such that for all . Moreover,
It will often be convenient to think of transpositions as moving distinguishable “counters” across “positions” which we label . A transposition acts by switching the counters currently in positions and , so a lazy transposition switches the counters currently in positions and with probability , and does nothing with probability . In this language a transposition shuffle is a sequence of independent lazy transpositions such that the final order of the counters is uniformly distributed over all orders.
Transposition shuffles are a special case of the more general problem of shuffling counters across positions. We start with counters in positions , and leave the other positions empty. A transposition switches any counters in positions and (which may include switching a counter with an empty space). A sequence of lazy transpositions naturally defines a random variable by the positions of the counters at the end of sequence, and we can again ask that this be uniformly distributed over all options. If the output is