Skip to content

Superpermutation

A string over n symbols that contains every permutation of those symbols as a contiguous substring.

Version
v2 · 2026-11-14 · History
Domain-specific #
12379
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomains
Combinatorics, Shortest Common Superstrings → Mathematics
Aliases
Permutation superstring, Universal permutation-containing string

Core Idea

A superpermutation is a covering word. Fix n symbols and the n! permutations of length n; one host string qualifies if each target occurs as an unbroken substring. Suffix–prefix overlap lets neighboring targets share characters, often shortening the host far below naive concatenation.

Existence, construction, and optimality are different claims. Any concatenation is valid, a clever construction supplies an upper bound, and a lower-bound argument is needed to prove minimum length. Known small cases therefore should not be generalized into an unsupported formula.

How would you explain it like I'm…

Every-Order String

Say you have the letters A, B and C. There are six ways to line them up, like ABC and CAB. A superpermutation is one long string of letters where every one of those lineups shows up somewhere in a row. Puzzlers try to make the string as short as they can by letting lineups share letters.

All-Orders-in-One String

A permutation is one way to put things in order, like ABC or BCA. A superpermutation is a single long string that contains every possible ordering of some letters as an unbroken chunk. You could just glue all the orderings end to end, and that always works, but it's long. Clever strings let the end of one ordering be the start of the next, so they share letters and the string gets much shorter. Finding the very shortest one, and proving nothing shorter exists, is a much harder problem.

Permutation-Covering String

Fix n symbols. There are n! permutations (orderings) of them, each of length n. A superpermutation is a string that contains every one of these permutations as a contiguous substring, with no gaps. Simply concatenating all permutations works but is wasteful; overlapping the end of one permutation with the beginning of the next lets neighbors share characters and shortens the string a lot. Three different questions arise: does one exist (always yes), how short can a clever construction make it (an upper bound), and what is the true minimum (which needs a lower-bound proof). Patterns from small n should not be assumed to continue for larger n without proof.

 

A superpermutation is a covering word: fixing n symbols, a single host string qualifies if each of the n! permutations of length n appears in it as an unbroken substring. The key structure is suffix-prefix overlap - when one permutation's suffix equals the next one's prefix, the shared characters need be written only once, so the host can be much shorter than the naive concatenation of length n times n!. It is important to separate three claims. Existence is trivial, since any concatenation of all permutations is valid. A specific construction establishes an upper bound on the minimal length. Proving optimality requires an independent lower-bound argument showing no shorter covering word exists. Because these differ, the minimal lengths known for small n should not be extrapolated into a formula for all n without proof.

Scope of Application

  • Combinatorics on words. Studies overlap among target permutations.
  • Optimization. Seeks minimum host length.
  • Graph formulations. Represents suffix–prefix transitions among permutations.
  • Computation. Searches constructions and certifies coverage for small n.

Clarity

State n, alphabet, whether the host is linear or cyclic, the exact coverage test, string length, and whether minimality is proved or only conjectured. Provide machine-checkable occurrence positions for large examples. Inclusion test: Include strings over an n-symbol alphabet for which every length-n permutation occurs contiguously at least once. Exclusion test: Exclude strings covering combinations only, subsequences with gaps, universal cycles interpreted cyclically without linearization, and shortest-common-supersequence problems over a different target family. Nearest boundary: A concatenation of all permutations is a valid but generally trivial superpermutation; it is a near-miss only for claims of optimality, not validity. Exit condition: The object exits when one permutation lacks a contiguous occurrence or symbols outside the defined alphabet alter the problem. Common misclassifications: It is not coverage by noncontiguous subsequences. It is not a string containing every combination. It is not necessarily a shortest superpermutation. It is not automatically a cyclic universal cycle. Nearest named distinctions: Supersequence: May allow targets as noncontiguous subsequences. De Bruijn sequence: Covers all fixed-length words, usually cyclically. Permutation concatenation: A valid construction, not the definition of minimality. Universal cycle: Uses cyclic windows and may target another object family.

Manages Complexity

The definition compresses factorially many targets into one sequence. Separating coverage from minimality prevents a computational construction from being mistaken for a proof of optimum.

Abstract Reasoning

  1. Enumerate the n! target permutations.
  2. Choose an ordering or overlap graph.
  3. Merge compatible suffixes and prefixes.
  4. Scan every length-n host window.
  5. Certify complete coverage.
  6. Pair upper constructions with valid lower bounds before claiming optimality.

Knowledge Transfer

The overlap-covering framework transfers to shortest common superstrings and universal sequence design when target objects and occurrence rules are redefined. Superpermutation length bounds do not transfer to combinations, subsequences, or cyclic coverage unchanged.

Relationships to Other Abstractions

Local relationship map for SuperpermutationParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.SuperpermutationDOMAINPrime abstraction: Permutation — presupposesPermutationPRIME

Current abstraction Superpermutation Domain-specific

Parents (1) — outgoing typed relations

  • Superpermutation presupposes Permutation Prime

    Superpermutation presupposes Permutation because the string is defined by containing every permutation of its symbol set as a substring.

Hierarchy paths (3) — routes to 1 parentless root

Neighborhood in Abstraction Space

Superpermutation sits in a crowded region of the domain-specific corpus (24th percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Matrices, Measures & Numeric Structures (30 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14