no. 22 · Wednesday 25 November 2026
The Insertion-Deletion Distance of Linear Codes under Random Coordinate Permutations
Abstract
We study the maximum insertion-deletion (insdel) distance attainable by permuting the coordinates of a fixed $[n,k]_q$ linear code. Exploiting the connection between common subsequences of codewords and noncrossing matchings in the related bipartite graphs, we establish probabilistic lower bounds under random coordinate permutations over large alphabets. In particular, if the maximum symbol multiplicity among nonconstant codewords is $O(n/q)$, a uniformly random coordinate permutation yields insdel distance at least $2n-O(n/\sqrt q)$ with high probability for sufficiently large $q$. Furthermore, for projective linear codes satisfying the same symbol multiplicity condition, we show that the maximum attainable insdel distance is $2n-Θ(n/\sqrt q)$. As an application, for $[n,k]_q$ MDS codes containing the all-one vector, random coordinate permutations yield insdel distance at least $2n-O(\sqrt{kn})$ with high probability whenever $(k-1)(\log q)^2=o(n)$. In particular, for full-length Reed–Solomon (RS) codes, we obtain the lower bound $2q-O(\sqrt{kq})$ with high probability for $k=o(q/(\log q)^2)$, substantially improving previously known lower bounds while allowing a wider range of dimensions. Finally, we give explicit constructions of full-length RS codes over square fields, attaining the order-optimal insdel distance $2q-Θ(\sqrt q)$.
- fields
- Information Theory