English

An $\mathcal{O}(n)$ Space Construction of Superpermutations

Discrete Mathematics 2025-05-19 v2 Computational Complexity Data Structures and Algorithms Combinatorics

Abstract

A superpermutation is a sequence that contains every permutation of nn distinct symbols as a contiguous substring. For instance, a valid example for three symbols is a sequence that contains all six permutations. This paper introduces a new algorithm that constructs such sequences more efficiently than existing recursive and graph-theoretic methods. Unlike traditional techniques that suffer from scalability and factorial memory demands, the proposed approach builds superpermutations directly and compactly. This improves memory usage, enabling the construction of larger sequences previously considered impractical.

Keywords

Cite

@article{arxiv.2505.09628,
  title  = {An $\mathcal{O}(n)$ Space Construction of Superpermutations},
  author = {Dhruv Ajmera},
  journal= {arXiv preprint arXiv:2505.09628},
  year   = {2025}
}

Comments

29 pages, 5 figures. Ancillary files include source code and README. GitHub repository: https://github.com/dajmera-24/Superpermutation-Algorithm

R2 v1 2026-06-28T23:33:27.429Z