Construction of orientable sequences in $O(1)$-amortized time per bit
Daniel Gabric, Joe Sawada
TL;DR
The paper tackles the problem of constructing orientable sequences $\,\mathcal{OS}(n)\,$ of asymptotically optimal length $L_n$, addressing a long-standing open question. It introduces an efficient cycle-joining construction based on asymmetric bracelets $\mathbf{A}(n)$ and a carefully designed successor rule that outputs each bit in $O(n)$ time using $O(n)$ space, producing an OS of length $L_n$. By applying concatenation-tree theory, the same sequences can be generated in $O(1)$-amortized time per bit with $O(n^2)$ space, enabling practical generation for larger $n$ (up to 20 shown). The work also extends to longer and acyclic orientable sequences via extensions and recursive lifts, yielding the longest-known $AOS(n)$ for $n\le 20$ and providing implementations. These results advance both the theoretical bounds and practical construction of orientable sequences, with potential applications in robotic sensing and sequence design.
Abstract
An orientable sequence of order $n$ is a cyclic binary sequence such that each length-$n$ substring appears at most once \emph{in either direction}. Maximal length orientable sequences are known only for $n\leq 7$, and a trivial upper bound on their length is $2^{n-1} - 2^{\lfloor(n-1)/2\rfloor}$. This paper presents the first efficient algorithm to construct orientable sequences with asymptotically optimal length; more specifically, our algorithm constructs orientable sequences via cycle-joining and a successor-rule approach requiring $O(n)$ time per bit and $O(n)$ space. This answers a longstanding open question from Dai, Martin, Robshaw, Wild [Cryptography and Coding III (1993)]. Applying a recent concatenation-tree framework, the same sequences can be generated in $O(1)$-amortized time per bit using $O(n^2)$ space. Our sequences are applied to find new longest-known (aperiodic) orientable sequences for $n\leq 20$.
