Lune

SODA2025顶会

Fast and Simple Sorting Using Partial Information

Bernhard Haeupler, Richard Hladík, John Iacono, Václav Rozhon, Robert E. Tarjan, Jakub Tetek

摘要

We consider the problem of sorting n items, given the outcomes of m pre-existing comparisons. We present a simple and natural deterministic algorithm that runs in O(m+log T ) time and does O(log T ) comparisons, where T is the number of total orders consistent with the pre-existing comparisons.

Our running time and comparison bounds are best possible up to constant factors, thus resolving a problem that has been studied intensely since 1976 (Fredman, Theoretical Computer Science). The best previous algorithm with a bound of O(log T ) on the number of comparisons has a time bound of O(n 2.5 ) and is more complicated.

Our algorithm combines three classic algorithms: topological sort, heapsort with the right kind of heap, and efficient search in a sorted list. It outputs the items in sorted order one by one. It can be modified to stop early, thereby solving the important and more general top-k sorting problem: Given k and the outcomes of some pre-existing comparisons, output the smallest k items in sorted order. The modified algorithm solves the top-k sorting problem in minimum time and comparisons, to within constant factors.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. Universal Optimality of Dijkstra Via Beyond-Worst-Case HeapsBernhard Haeupler, Richard Hladík, Václav Rozhon, Robert E. Tarjan 等FOCS 2024 · 33 次引用
  2. Tight Bounds for Sorting Under Partial InformationIvor van der Hoog, Daniel RutschmannFOCS 2024 · 8 次引用

它引用的 Paper3

  1. New Bounds for Matrix Multiplication: from Alpha to OmegaVirginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, Renfei ZhouSODA 2024 · 90 次引用
  2. Universal Optimality of Dijkstra Via Beyond-Worst-Case HeapsBernhard Haeupler, Richard Hladík, Václav Rozhon, Robert E. Tarjan 等FOCS 2024 · 33 次引用
  3. Tight Bounds for Sorting Under Partial InformationIvor van der Hoog, Daniel RutschmannFOCS 2024 · 8 次引用

相关 Paper

  1. Nearly Tight Bounds for the Online Sorting ProblemYossi Azar, Debmalya Panigrahi, Or VardiSODA 2026
  2. Sorting and Selection in Rounds with Adversarial ComparisonsChristopher TrevisanSODA 2024
  3. An Optimal Algorithm for Sorting Pattern-Avoiding SequencesMichal OplerFOCS 2024 · 1 次引用
  4. Stochastic and Worst-Case Generalized Sorting RevisitedWilliam Kuszmaul, Shyam NarayananFOCS 2021 · 2 次引用
  5. Sorting with PredictionsXingjian Bai, Christian CoesterNeurIPS 2023 · 29 次引用
黄昏的海面,两侧是细线勾勒的悬崖