Stochastic and Worst-Case Generalized Sorting Revisited

11/14/2021
by   William Kuszmaul, et al.
0

The generalized sorting problem is a restricted version of standard comparison sorting where we wish to sort n elements but only a subset of pairs are allowed to be compared. Formally, there is some known graph G = (V, E) on the n elements v_1, …, v_n, and the goal is to determine the true order of the elements using as few comparisons as possible, where all comparisons (v_i, v_j) must be edges in E. We are promised that if the true ordering is x_1 < x_2 < ⋯ < x_n for {x_i} an unknown permutation of the vertices {v_i}, then (x_i, x_i+1) ∈ E for all i: this Hamiltonian path ensures that sorting is actually possible. In this work, we improve the bounds for generalized sorting on both random graphs and worst-case graphs. For Erdős-Renyi random graphs G(n, p) (with the promised Hamiltonian path added to ensure sorting is possible), we provide an algorithm for generalized sorting with an expected O(n log (np)) comparisons, which we prove to be optimal for query complexity. This strongly improves over the best known algorithm of Huang, Kannan, and Khanna (FOCS 2011), which uses Õ(min(n √(np), n/p^2)) comparisons. For arbitrary graphs G with n vertices and m edges (again with the promised Hamiltonian path), we provide an algorithm for generalized sorting with Õ(√(mn)) comparisons. This improves over the best known algorithm of Huang et al., which uses min(m, Õ(n^3/2)) comparisons.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/31/2020

Generalized Sorting with Predictions

Generalized sorting problem, also known as sorting with forbidden compar...
research
10/26/2018

Some comments on the structure of the best known networks sorting 16 elements

We propose an explanation of the structure of the best known sorting net...
research
11/08/2022

Universal Sorting: Finding a DAG using Priced Comparisons

We resolve two open problems in sorting with priced information, introdu...
research
08/31/2020

Sorting an Array Using the Topological Sort of a Corresponding Comparison Graph

The quest for efficient sorting is ongoing, and we will explore a graph-...
research
06/11/2022

Lower Bounds for Sorting 16, 17, and 18 Elements

It is a long-standing open question to determine the minimum number of c...
research
07/19/2017

Worst-case vs Average-case Design for Estimation from Fixed Pairwise Comparisons

Pairwise comparison data arises in many domains, including tournament ra...
research
06/09/2021

Pattern-defeating Quicksort

A new solution for the Dutch national flag problem is proposed, requirin...

Please sign up or login with your details

Forgot password? Click here to reset