TOPICS
Search

Superpermutation


A superpermutation on n symbols is a string that contains every one of the n! permutations of those symbols as a contiguous substring. A shortest superpermutation has minimum length among all such strings.

For example, the literal strings 1, 121, and 123121321 are shortest superpermutations on one, two, and three symbols, respectively. The last contains the six permutations 123, 231, 312, 213, 132, and 321 as contiguous substrings. A shortest superpermutation on four symbols is

 123412314231243121342132413214321,

which has length 33. The minimum lengths begin 1, 3, 9, 33, 153, ... (OEIS A180632; Honner 2019).

A recursive construction gives superpermutations of length

 1!+2!+...+n!.

This length was once conjectured to be minimal for every n, but Houston (2014) found a shorter superpermutation for n=6.


See also

Permutation, String

Explore with Wolfram|Alpha

References

Sloane, N. J. A. Sequence A180632 in "The On-Line Encyclopedia of Integer Sequences."Honner, P. "Unscrambling the Hidden Secrets of Superpermutations." Quanta Mag. Jan. 16, 2019. https://www.quantamagazine.org/unscrambling-the-hidden-secrets-of-superpermutations-20190116/.Houston, R. "Tackling the Minimal Superpermutation Problem." 21 Aug 2014. https://arxiv.org/abs/1408.5108.

Cite this as:

Weisstein, Eric W. "Superpermutation." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Superpermutation.html

Subject classifications