Journal Article 1 Mention
Keeler's Theorem and Products of Distinct Transpositions
Ron Evans•2014
Lihua HuangTuan Huy Nguyen
Top 15% · 85th Percentile
25 citations · Discrete Mathematics and Combinatorics
Open Access

TLDR

The authors give efficient ways to reverse several patterns of body-swapping and identify exactly which totals of different swaps can cancel out completely.

Summary

1 Study Aim

The authors aim to improve Ken Keeler’s method for reversing any mind-scrambling sequence when the original swaps are unknown. They also seek the shortest reversals for two common sequences that produce the same cyclic rearrangement. Finally, they ask which numbers of distinct swaps can combine to leave everyone unchanged. They wanted to find short ways to undo swaps and learn which swap totals can restore everyone.

2 Study Design

The authors give a theoretical mathematical analysis, not a study of people. They represent each sequence as a permutation (a rearrangement) in the symmetric group S_n (all rearrangements of n objects), and each switch as a transposition (a swap of one pair). They construct explicit reversal sequences and prove that fewer switches cannot always work. Their proofs use parity (whether a count is even or odd) and a graph-based result about how swaps combine. They build reversal recipes and prove when those recipes use as few swaps as possible.

3 Findings

The study shows that a scramble with r disjoint cycles (separate loops of moved bodies) can be undone using n+r+2 distinct swaps and two outsiders; this number is best possible for the method. For two standard sequences producing the same cycle, the authors prove optimal reversals use n+1 swaps: no outsiders are needed for the first when n≥5, and one outsider suffices for the second when n≥3. They also prove that the identity permutation (no net rearrangement) is a product of m distinct transpositions exactly when m is even and 6≤m≤n choose 2, the total number of available pairs. The results give shortest reversal recipes for these patterns and specify which swap totals can cancel completely.

Abstract

An episode of the television series Futurama features a two-body mind-switching machine, which will not work more than once on the same pair of bodies. After the Futurama community engages in a mind-switching spree, the question is asked, “Can the switching be undone so as to restore all minds to their original bodies?” Ken Keeler found an algorithm that undoes any mind-scrambling permutation with the aid of two “outsiders.” We refine Keeler's result by providing a more efficient algorithm that uses the smallest possible number of switches. We also present best possible algorithms for undoing two natural sequences of switches, each sequence effecting a cyclic mind-scrambling permutation in the symmetric group Sn. Finally, we give necessary and sufficient conditions on m and n for the identity permutation to be expressible as a product of m distinct transpositions in Sn.

Referenced In