Optimal-Time Move Structure Construction
Abstract
The move structure represents a permutation of as a covering set of disjoint intervals (contiguous subsets of ), where is the minimum number of intervals whose values permute together. Formally, . The move structure takes words of space. Given the index of the interval containing , it allows computing and the index of the interval containing in -time. Therefore, for permutations where , it allows their representation and navigation in significantly compressed space. The previous best -space move structure construction algorithm takes -time. In this paper, we describe a construction algorithm achieving optimal -time and space. We also show that using our improved algorithm within a recent previous work allows the computation of the longest common prefix array in -working space and optimal -time given the run-length-encoded Burrows-Wheeler transform. Finally, we implement our improved move structure construction algorithm and find that it is faster than the previous best algorithm while using comparable memory.
Keywords
Cite
@article{arxiv.2603.22147,
title = {Optimal-Time Move Structure Construction},
author = {Nathaniel K. Brown and Ahsan Sanaullah and Shaojie Zhang and Ben Langmead},
journal= {arXiv preprint arXiv:2603.22147},
year = {2026}
}