arXiv++ Combinatorics

Browse math.CO papers from arXiv

Papers by Lihua Huang

2 paper(s) by this author · All BibTeX
2012-09-22 v3
Mind Switches in Futurama and Stargate
Published in Math. Magazine 87 (2014) 252--262 • View PublicationBIB
Let P be a permutation expressed as a product of nontrivial disjoint cycles. When writing P as a product of distinct transpositions none equal to a factor of P, what is the smallest number of transpositions that can be used? We answer this question and give applications to mind-switching problems that have arisen in connection with the popular sci-fi television series Futurama and Stargate SG-1.
2012-04-26 v2
Keeler's theorem and products of distinct transpositions
Published in Amer. Math. Monthly 121 (2014), 136--144 • View PublicationBIB
An episode of 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 S_n. 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 S_n.