Skip to content

Asymptotically Sharp Bounds for Zero-Cyclic Equalization of Binary Words

Haruyuki Kawabe

math.CO

Abstract

We study simultaneous insertion of zeros into two binary words of equal length and Hamming weight, to make the resulting words equal up to cyclic rotation. Using cyclic 00-gap vectors, we formulate the problem as an integral transport problem on a directed multigraph. For binary words u,v∈{0,1}nu, v \in \{0, 1\}^n of common Hamming weight w≥1w \ge 1, we show that the minimum number K0(u,v)K_0(u, v) of zeros that must be inserted into each word satisfies K0(u,v)≤(w−1)(n−w)K_0(u, v) \le (w-1)(n-w). The case w=0w = 0 is trivial. For w≥1w \ge 1, we give an O(nw)O(nw)-time algorithm that recovers an insertion vector satisfying this bound, together with an explicit family whose lower bound matches the quadratic leading term of the upper bound. Consequently, the worst-case minimum insertion number is n2/4+O(n)n^2/4+O(n), so the leading constant 1/41/4 is optimal.

Create a lesson

Metadata

Categories
math.CO, cs.DS