This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Perfect shuffling with fewer lazy transpositions

Carla Groenland111Utrecht University, Utrecht, The Netherlands, [email protected]. Partially supported by the ERC Horizon 2020 project CRACKNP (grant no. 853234).  Tom Johnston222School of Mathematics, University of Bristol, Bristol, BS8 1UG, UK and Heilbronn Institute for Mathematical Research, Bristol, UK, [email protected].
Jamie Radcliffe333University of Nebraska-Lincoln, USA,[email protected].  Alex Scott22footnotemark: 2 444Mathematical Institute, University of Oxford, Oxford OX2 6GG, UK, [email protected]. Supported by EPSRC grant EP/V007327/1.
Abstract

A lazy transposition (a,b,p)(a,b,p) is the random permutation that equals the identity with probability 1p1-p and the transposition (a,b)Sn(a,b)\in S_{n} with probability pp. 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 (n2)\binom{n}{2}, 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 23(n2)+O(nlogn)\frac{2}{3}\binom{n}{2}+O(n\log n), and consider some related questions.

1 Introduction

Let SnS_{n} be the symmetric group on nn elements, and write (a,b)Sn(a,b)\in S_{n} for the transposition that swaps aa and bb, and 1Sn1\in S_{n} for the identity permutation. A lazy transposition T=(a,b,p)T=(a,b,p) is the random permutation

T={(a,b) with probability p,1 otherwise.T=\begin{cases}(a,b)&\text{ with probability }p,\\ 1&\text{ otherwise}.\end{cases}

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 U(n)U(n) denote the minimum length \ell for which there exists a sequence of independent lazy transpositions T1,,TT_{1},\dots,T_{\ell} such that T1TUniform(Sn)T_{1}\cdots T_{\ell}\sim\operatorname{Uniform}(S_{n}), the uniform distribution over SnS_{n}. 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 (n2)\binom{n}{2} lazy transpositions and ask if this is best possible.

Problem 1 (Fitzsimons [stack], Angel and Holroyd [angel2018perfect]).

Does U(n)=(n2)U(n)=\binom{n}{2} for all nn?

The main result of this paper is a new construction for shuffling with lazy transpositions which improves the constant in the upper bound of U(n)U(n) and answers Problem 1 in the negative.

Theorem 2.

There exists an ε>0\varepsilon>0 such that U(n)(1ε)(n2)U(n)\leq(1-\varepsilon)\binom{n}{2} for all n6n\geq 6. Moreover,

U(n)23(n2)+O(nlogn).U(n)\leq\frac{2}{3}\binom{n}{2}+O(n\log n).

It will often be convenient to think of transpositions as moving nn distinguishable “counters” across nn “positions” which we label 1,,n1,\dots,n. A transposition (a,b)(a,b) acts by switching the counters currently in positions aa and bb, so a lazy transposition (a,b,p)(a,b,p) switches the counters currently in positions aa and bb with probability pp, and does nothing with probability 1p1-p. 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 n!n! orders.

Transposition shuffles are a special case of the more general problem of shuffling tt counters across nn positions. We start with counters in positions 1,,t1,\dots,t, and leave the other positions empty. A transposition (a,b)(a,b) switches any counters in positions aa and bb (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 t!(nt)t!\binom{n}{t} options. If the output is