String Consensus Problems with Swaps and Substitutions

📅 2025-07-25
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This paper studies the string consensus problem under the adjacent-swap-and-substitution edit distance: given a set of equal-length strings, find a target string whose maximum (or sum of) distances to the input strings is at most a threshold (d) (or minimized). It introduces adjacent swaps into the parameterized framework of string consensus for the first time. For the max-distance version, we prove fixed-parameter tractability (FPT) with respect to (d) and design a parameterized algorithm combining dynamic programming with bounded search trees. For the sum-distance minimization version, we present the first polynomial-time exact algorithm. Our work extends classical consensus models—previously restricted to substitution, insertion, and deletion—to incorporate adjacent swaps, thereby resolving a previously NP-hard generalized consensus problem. Under the unit-cost swap-substitution metric, our algorithms achieve theoretical optimality in both time complexity and parameter dependence.

Technology Category

Application Category

📝 Abstract
String consensus problems aim at finding a string that minimizes some given distance with respect to an input set of strings. In particular, in the extsc{Closest String} problem, we are given a set of strings of equal length and a radius $d$. The objective is to find a new string that differs from each input string by at most $d$ substitutions. We study a generalization of this problem where, in addition to substitutions, swaps of adjacent characters are also permitted, each operation incurring a unit cost. Amir et al. showed that this generalized problem is NP-hard, even when only swaps are allowed. In this paper, we show that it is FPT with respect to the parameter $d$. Moreover, we investigate a variant in which the goal is to minimize the sum of distances from the output string to all input strings. For this version, we present a polynomial-time algorithm.
Problem

Research questions and friction points this paper is trying to address.

Generalizes Closest String problem with swaps and substitutions
Proves FPT complexity for distance parameter d
Solves sum-of-distances variant in polynomial time
Innovation

Methods, ideas, or system contributions that make the work stand out.

FPT algorithm for swap and substitution distance
Polynomial-time sum distance minimization algorithm
Generalized closest string with adjacent swaps
🔎 Similar Papers
No similar papers found.
E
Estéban Gabory
Dipartimento di Matematica e Informatica, Università di Palermo, Palermo, Italy
L
Laurent Bulteau
LIGM, CNRS, Université Gustave Eiffel, F77454 Marne-la-vallée, France
Gabriele Fici
Gabriele Fici
Associate Professor, Università di Palermo, Italy
Theoretical Computer ScienceCombinatorics on WordsString AlgorithmsDiscrete Mathematics
H
Hilde Verbeek
CWI, Amsterdam, The Netherlands