Computing an Ulam median is NP-hard already for exactly four input permutations, which is the minimum possible since three permutations are easy.
Kemeny Rank Aggregation is NP-Hard for Three Voters
1 Pith paper cite this work. Polarity classification is still indexing.
abstract
Rank aggregation is the task of combining $n$ input rankings (linear orders) of alternatives into a single output ranking. The Kemeny rank aggregation rule selects the output ranking that minimizes the total Kendall-tau distance to the input rankings, i.e., the total number of adjacent swaps that need to be performed across input rankings so that they are all equal to the output ranking. Dwork et al. (2001) proved that the problem of computing such a ranking is NP-complete for every even $n \ge 4$ and asked whether hardness holds even for $n = 3$. We give a hardness reduction from MAX CUT that proves the problem is NP-complete for $n = 3$. The reduction was found in July 2026 by GPT 5.6 Sol Ultra and simplified in part with help from Claude Fable 5.
fields
cs.CC 1years
2026 1verdicts
ACCEPT 1representative citing papers
citing papers explorer
-
Ulam Median is NP-hard for Four Permutations
Computing an Ulam median is NP-hard already for exactly four input permutations, which is the minimum possible since three permutations are easy.