English

Clustering Permutations: New Techniques with Streaming Applications

Data Structures and Algorithms 2026-02-23 v1

Abstract

We study the classical metric kk-median clustering problem over a set of input rankings (i.e., permutations), which has myriad applications, from social-choice theory to web search and databases. A folklore algorithm provides a 22-approximate solution in polynomial time for all k=O(1)k=O(1), and works irrespective of the underlying distance measure, so long it is a metric; however, going below the 22-factor is a notorious challenge. We consider the Ulam distance, a variant of the well-known edit-distance metric, where strings are restricted to be permutations. For this metric, Chakraborty, Das, and Krauthgamer [SODA, 2021] provided a (2δ)(2-\delta)-approximation algorithm for k=1k=1, where δ240\delta\approx 2^{-40}. Our primary contribution is a new algorithmic framework for clustering a set of permutations. Our first result is a 1.9991.999-approximation algorithm for the metric kk-median problem under the Ulam metric, that runs in time (klog(nd))O(k)nd3(k \log (nd))^{O(k)}n d^3 for an input consisting of nn permutations over [d][d]. In fact, our framework is powerful enough to extend this result to the streaming model (where the nn input permutations arrive one by one) using only polylogarithmic (in nn) space. Additionally, we show that similar results can be obtained even in the presence of outliers, which is presumably a more difficult problem.

Keywords

Cite

@article{arxiv.2212.01821,
  title  = {Clustering Permutations: New Techniques with Streaming Applications},
  author = {Diptarka Chakraborty and Debarati Das and Robert Krauthgamer},
  journal= {arXiv preprint arXiv:2212.01821},
  year   = {2026}
}
R2 v1 2026-06-28T07:21:32.345Z