English

Approximating the Median under the Ulam Metric

Data Structures and Algorithms 2020-11-03 v1

Abstract

We study approximation algorithms for variants of the \emph{median string} problem, which asks for a string that minimizes the sum of edit distances from a given set of mm strings of length nn. Only the straightforward 22-approximation is known for this NP-hard problem. This problem is motivated e.g.~by computational biology, and belongs to the class of median problems (over different metric spaces), which are fundamental tasks in data analysis. Our main result is for the Ulam metric, where all strings are permutations over [n][n] and each edit operation moves a symbol (deletion plus insertion). We devise for this problem an algorithms that breaks the 22-approximation barrier, i.e., computes a (2δ)(2-\delta)-approximate median permutation for some constant δ>0\delta>0 in time O~(nm2+n3)\tilde{O}(nm^2+n^3). We further use these techniques to achieve a (2δ)(2-\delta) approximation for the median string problem in the special case where the median is restricted to length nn and the optimal objective is large Ω(mn)\Omega(mn). We also design an approximation algorithm for the following probabilistic model of the Ulam median: the input consists of mm perturbations of an (unknown) permutation xx, each generated by moving every symbol to a random position with probability (a parameter) ϵ>0\epsilon>0. Our algorithm computes with high probability a (1+o(1/ϵ))(1+o(1/\epsilon))-approximate median permutation in time O(mn2+n3)O(mn^2+n^3).

Keywords

Cite

@article{arxiv.2011.00868,
  title  = {Approximating the Median under the Ulam Metric},
  author = {Diptarka Chakraborty and Debarati Das and Robert Krauthgamer},
  journal= {arXiv preprint arXiv:2011.00868},
  year   = {2020}
}
R2 v1 2026-06-23T19:50:28.522Z