Constructing $k$-ary Orientable Sequences with Asymptotically Optimal Length
Daniel Gabrić, Joe Sawada
TL;DR
This work advances the construction of long orientable sequences over a $k$-ary alphabet by extending the cycle-joining framework to $k\ge 3$. It introduces a new parent rule yielding a cycle-joining tree on asymmetric bracelets with the Chain Property, enabling an $O(n)$-time, $O(n)$-space successor rule that produces an $OS_k(n)$ of asymptotically maximal length, for all $n\ge 3$ and $k\ge 3$. For the special case $n=2$, it provides a simple maximal-length construction, achieving $M_k(2)=k\lfloor (k-1)/2\rfloor$. The paper also derives a Möbius-inversion based formula for the exact lower bound $L_k(n)$ on the maximal orientable sequence length and shows $L_k(n)$ is asymptotically tight with $M_k(n)$, underscoring the practical efficiency of the proposed generator. These results enable scalable generation of long orientable sequences with applications in sensing, DNA-inspired computation, and related combinatorial design problems.
Abstract
An orientable sequence of order $n$ over an alphabet $\{0,1,\ldots, k{-}1\}$ is a cyclic sequence such that each length-$n$ substring appears at most once \emph{in either direction}. When $k= 2$, efficient algorithms are known to construct binary orientable sequences, with asymptotically optimal length, by applying the classic cycle-joining technique. The key to the construction is the definition of a parent rule to construct a cycle-joining tree of asymmetric bracelets. Unfortunately, the parent rule does not generalize to larger alphabets. Furthermore, unlike the binary case, a cycle-joining tree does not immediately lead to a simple successor-rule when $k \geq 3$ unless the tree has certain properties. In this paper, we derive a parent rule to derive a cycle-joining tree of $k$-ary asymmetric bracelets. This leads to a successor rule that constructs asymptotically optimal $k$-ary orientable sequences in $O(n)$ time per symbol using $O(n)$ space. In the special case when $n=2$, we provide a simple construction of $k$-ary orientable sequences of maximal length.
