arXiv:2608.29180cs.CCAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29180

Hardness of Approximation of Rank Aggregation on Ulam Metric

Sk Ruhul Azgor, Diptarka Chakraborty, Le Van Cuong, Debarati Das, Tien Long Nguyen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study the approximability of rank aggregation under the Ulam metric. In the Ulam median problem, the goal is to find a permutation minimizing the sum of its Ulam distances to the input permutations, while in the Ulam center problem the objective is to minimize the maximum such distance. Both problems are known to be NP-hard, but no explicit approximation hardness was previously known. We prove that, for every ε>0\varepsilon > 0, it is NP-hard to approximate either Ulam median or Ulam center within a factor of 51/50−ε51/50 - \varepsilon, even when the input consists of only four permutations. We further show that unless P = NP, neither problem admits a polynomial-time additive approximation scheme. The hardness result for Ulam median is established via a reduction from MAX-E3-LIN-2. The corresponding hardness for Ulam center is then obtained through a reduction from Ulam median.

1 Introduction

Aggregating potentially inconsistent information from multiple sources is a fundamental challenge across social choice, information retrieval, and data analysis. When sources such as voters, search engines, or learned agents provide complete orderings over a set of alternatives, the problem is known as rank aggregation. The goal is to compute a consensus ranking that optimizes a specific objective function. Because different individuals or retrieval systems rarely agree on every pair of alternatives, input rankings inherently conflict. This dynamic naturally arises in diverse applications, including voting, web search, database systems, similarity search, and classification [4, 11, 17, 12, 1].

Two of the most well-studied optimization objectives in this domain are the median and center variants. The median variant seeks a consensus ranking that minimizes the sum of distances to the input rankings, while the center variant minimizes the maximum distance to any input. In both cases, the optimal consensus may be any valid permutation, not strictly one of the original inputs. Ultimately, the computational complexity of solving either variant depends heavily on the underlying distance metric used to compare permutations.

In this paper, we study the rank aggregation problem under the Ulam distance. The Ulam distance between two rankings is the minimum number of items/candidates that need to be moved to transform one ranking into the other, where a move removes an item and reinserts it elsewhere. Equivalently, for permutations of n items, it equals n minus the length of their longest common subsequence (LCS). This distance metric is compelling primarily for two reasons. First, the Ulam

*Pennsylvania State University. Email: sfa6135@psu.edu

†^{\dagger}National University of Singapore. Work partially supported by an MoE AcRF Tier 1 grant (T1 251RES2303) and a Google South & South-East Asia Research Award. Email: diptarka@nus.edu.sg

‡^{\ddagger}National University of Singapore. Email: e1583414@u.nus.edu

$Pennsylvania State University. Work supported in part by NSF grant 2337832. Email: debaratix710@gmail.com

^{¶}Pennsylvania State University. Email: tfn5179@psu.edu distance is exactly one-half of the insertion-deletion distance, a natural variant of the standard edit distance, when both strings are permutations of the same alphabet. Thus, it captures much of the alignment structure that makes edit-distance problems challenging, while avoiding the complications caused by repeated symbols. This connection suggests that insights for Ulam aggregation may also be useful for more general multiple sequence alignment problems, which have numerous applications in computational biology [15, 26], DNA storage systems [14, 27], speech recognition [21], and classification [23]. Second, a move operation naturally models a displaced item while preserving the relative order of a large unaffected subsequence, a common form of error in rankings. Accordingly, the Ulam distance arises naturally in applications involving rankings, including social choice theory [4] and information retrieval [17], and has been extensively studied in the algorithmic literature in various contexts [10, 9, 2, 24, 3].

Both the median and center variants of the rank aggregation problem under the Ulam distance are already known to be NP-hard [13]. Recently, through a reduction from 3SAT, the Ulam median problem was shown to be NP-hard even for four input permutations [16]. On the algorithmic side, returning the best input gives a folklore 2-approximation to the median by the triangle inequality. For the center, returning any input gives the same guarantee. Beating this generic bound for the Ulam median long remained a computational challenge, and was first achieved in [6], which proposed a (2−δ)(2 - \delta)-approximation for a tiny constant δ>0\delta > 0. Since then, several new algorithmic frameworks [7, 5], along with refinements [19], have been proposed. Despite these attempts, the best-known approximation factor is 1.968 [5]. On the center variant, the scenario is much more elusive, with no better-than-2-factor algorithm known, and a slightly better than 3/2-approximation known only when the number of inputs is constant [8]. This behavior contrasts sharply with rank aggregation under the Kendall-tau distance – another fundamental distance metric defined over permutations. Although the corresponding median problem is NP-hard [11], even for three input rankings [25, 22], it admits a polynomial-time approximation scheme (PTAS) [20].

It is therefore natural to ask whether Ulam median also admits a PTAS, or even just a polynomial-time additive approximation scheme. We show that neither is possible unless P=NP.