Can You Solve Closest String Faster than Exhaustive Search?

05/26/2023
by   Amir Abboud, et al.
0

We study the fundamental problem of finding the best string to represent a given set, in the form of the Closest String problem: Given a set X ⊆Σ^d of n strings, find the string x^* minimizing the radius of the smallest Hamming ball around x^* that encloses all the strings in X. In this paper, we investigate whether the Closest String problem admits algorithms that are faster than the trivial exhaustive search algorithm. We obtain the following results for the two natural versions of the problem: ∙ In the continuous Closest String problem, the goal is to find the solution string x^* anywhere in Σ^d. For binary strings, the exhaustive search algorithm runs in time O(2^d poly(nd)) and we prove that it cannot be improved to time O(2^(1-ϵ) d poly(nd)), for any ϵ > 0, unless the Strong Exponential Time Hypothesis fails. ∙ In the discrete Closest String problem, x^* is required to be in the input set X. While this problem is clearly in polynomial time, its fine-grained complexity has been pinpointed to be quadratic time n^2 ± o(1) whenever the dimension is ω(log n) < d < n^o(1). We complement this known hardness result with new algorithms, proving essentially that whenever d falls out of this hard range, the discrete Closest String problem can be solved faster than exhaustive search. In the small-d regime, our algorithm is based on a novel application of the inclusion-exclusion principle. Interestingly, all of our results apply (and some are even stronger) to the natural dual of the Closest String problem, called the Remotest String problem, where the task is to find a string maximizing the Hamming distance to all the strings in X.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/17/2018

On Computing Centroids According to the p-Norms of Hamming Distance Vectors

In this paper we consider the p-Norm Hamming Centroid problem which asks...
research
07/05/2012

An experimental study of exhaustive solutions for the Mastermind puzzle

Mastermind is in essence a search problem in which a string of symbols t...
research
02/04/2020

Faster Binary Mean Computation Under Dynamic Time Warping

Many consensus string problems are based on Hamming distance. We replace...
research
11/30/2022

Approximating binary longest common subsequence in almost-linear time

The Longest Common Subsequence (LCS) is a fundamental string similarity ...
research
05/01/2010

The Exact Closest String Problem as a Constraint Satisfaction Problem

We report (to our knowledge) the first evaluation of Constraint Satisfac...
research
06/25/2012

Speeding up the construction of slow adaptive walks

An algorithm (bliss) is proposed to speed up the construction of slow ad...
research
04/29/2021

Parameterized String Equations

We study systems of String Equations where block variables need to be as...

Please sign up or login with your details

Forgot password? Click here to reset