An Optimal Algorithm for Binary Closest String
Abstract
We revisit the Binary Closest String problem, which asks, given a set of binary strings X ⊂eq \0, 1\n, to compute a string minimizing the maximum Hamming distance to X. A long line of work has focused on parameterized algorithms with respect to the optimal distance d, yielding a sequence of improvements from O*(dd) through O*(16d), O*(9.513d), O*(8d), O*(6.731d) to the current best-known running time of O*(5d) [Chen, Ma, Wang; Algorithmica '16]. We present a faster randomized algorithm running in time O*(4d). Our result matches a recent fine-grained lower bound [Abboud, Fischer, Goldenberg, Karthik C.S., Safier; ESA '23], and is therefore conditionally optimal. As an extra benefit, our algorithm is remarkably simple.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.