TL;DR
The authors introduce efficient algorithms for the Generalized Poset Sorting (GPS) problem, where an unknown partially ordered set (poset) of width $k$ must be reconstructed by querying edges from a restricted query graph. They achieve near-linear $\tilde{O}(n \cdot \text{poly}(k))$ query bounds for both Erdős–Rényi random graphs and complete bipartite graphs. Furthermore, they leverage these poset techniques to break the longstanding linear barrier for weighted generalized sorting, establishing the first strictly sublinear competitive ratio for graphs with a bounded number of distinct edge weights.
What Problem Does This Paper Address?
Traditional sorting assumes two things:
- Every pair of elements can be compared (the comparison graph is complete).
- Every pair is comparable (the elements form a total order).
When comparisons are restricted to edges of an arbitrary graph $G = (V, E)$, the problem is known as generalized sorting. When elements can be mutually incomparable (forming a poset of width $k$, where $k$ is the maximum antichain size) but the comparison graph is complete, it is known as poset sorting.
This paper tackles Generalized Poset Sorting (GPS), which combines both challenges: you are given an undirected query graph $G = (V, E)$ and an unknown poset $\mathcal{P} = (V, \prec)$. Each query on an edge $(u, v) \in E$ reveals whether $u \prec v$, $v \prec u$, or $u \not\sim v$ (incomparable). The goal is to fully reconstruct all relations in $\mathcal{P}$ using as few queries as possible.
Because missing edges prevent standard binary insertion or path-cover shortcuts, and incomparable query results provide virtually zero ordering information, standard generalized sorting or poset sorting routines break down.
Methods
The authors tackle GPS through a modular algorithmic framework:
-
Reduction to Linear Extensions via Quicksort:
The authors show that reconstructing the full poset can be reduced in $\tilde{O}(nk)$ queries to finding a linear extension (a topological sort of the poset). To find the linear extension, they use a randomized Quicksort-style algorithm that chooses a pivot $v$ and partitions elements into three sets: $\{u : u \prec v\}$, $\{u : u \succ v\}$, and $\{u : u \not\sim v\}$. -
Refined Partition Complexity:
In standard quicksort on graphs, partitioning can cost $\Omega(n)$ or more. To avoid accumulating extra factors of $k$ across the recursion depth, the authors demand that the partition routine's query budget depends only on the width of the sub-poset comparable to pivot $v$ ($k_v$), rather than the global width $k$. -
Skip-BFS for Erdős–Rényi Graphs ($G(n, p)$):
To partition vertices on stochastic graphs, the algorithm runs a directed breadth-first search (BFS). Crucially, it maintains incoming counters for visited nodes. Once a node has been reached from $\Omega(\log n)$ larger predecessors, it is skipped (removed from the queue). With high probability in $G(n, p)$, these predecessors collectively cover all remaining smaller elements, pruning the search space to $\tilde{O}(nk^2)$ queries. -
Iterative Minima Search for Complete Bipartite Graphs:
For bipartite graphs $(A, B)$, comparing elements on the same side directly is forbidden. The authors developFindMin, a randomized procedure to isolate minimal elements on one side to expand the reachable set on the other, halving search distances at each step and yielding an $\tilde{O}(nk)$ partition step. -
GPS with Comparable Edges (GPSC) & Everywhere Predictors:
When all edges in $G$ are comparable, the authors construct edge-direction predictors with an "everywhere" guarantee (bounding errors adjacent to every vertex by $\tilde{O}(\sqrt{n})$), achieving an $\tilde{O}(nk + n^{1.5})$ query algorithm.
Datasets
Not applicable. This is a purely theoretical paper; no empirical datasets or experimental benchmarks were used.
Key Insights and Ideas
- Path Covers Tame Reconstruction: Once a linear extension is determined, Dilworth’s Theorem ensures the partially revealed DAG on visited vertices has a path cover of size at most $k$. A binary search along each path determines all incident relations for a newly inserted element in just $O(k \log n)$ queries.
- Sensitivity to Pivot Width ($k_v$): If a pivot has a small comparable component, partitioning is cheap. If it has a large comparable component, remaining incomparable subproblems shrink dramatically in width. Charging costs to $k_v$ prevents the recursion depth ($O(k + \log n)$) from multiplying the entire partition bound by an extraneous factor of $k$.
- Bridging Posets to Weighted Sorting: In weighted generalized sorting, each comparison $(u, v)$ has a non-negative cost $w(u, v)$. By thresholding edge costs at $w_\tau$, the cheap edges form an unweighted poset $\mathcal{P}_\tau$. Solving GPSC on this poset produces a small chain decomposition, which can then be fed into an algorithm that resolves expensive edges, achieving sublinear competitive ratios.
Key Results
- Erdős–Rényi Stochastic Graphs: Solves GPS in $\tilde{O}(nk^2)$ queries with high probability for any edge probability $0 < p \le 1$ (where $G$ is the union of an Erdős–Rényi graph and a minimal base DAG).
- Complete Bipartite Graphs: Solves GPS in $\tilde{O}(nk)$ queries with high probability, matching the classical $\Omega(nk)$ lower bound for complete graphs up to polylogarithmic factors.
- GPS with Comparable Edges (GPSC): Solves general graphs where all edges are comparable using $\tilde{O}(nk + n^{1.5})$ queries.
- Weighted Generalized Sorting: Obtains a competitive ratio of $\tilde{O}(n^{1 - 1/(2W)})$, where $W$ is the number of distinct edge weights. This provides the first sublinear competitive ratio for general weighted query graphs with any bounded $W$, improving over the previously known $O(n)$ ratio.
Limitations and Future Work
- Computational Complexity of GPSC: While the query complexity of the GPSC algorithm is subquadratic ($\tilde{O}(nk + n^{1.5})$), the authors note that the algorithm may require exponential computation time to process queries. Finding a polynomial-time equivalent remains open.
- Sub-logarithmic Bounds for Ultra-Sparse Graphs: In generalized sorting ($k = 1$), previous work achieved $O(n \log(np))$ queries on $G(n, p)$, allowing sub-$O(n \log n)$ query bounds when $p \le 1/n$. The paper's bound carries extra polylogarithmic factors, leaving open whether an analogous $o(n \log n)$ regime exists for GPS.
- Closing the Lower Bound for Weighted Sorting: The upper bound shows that hard instances for weighted generalized sorting requiring $\Omega(n)$ competitive ratio must contain at least $\Omega(\log n)$ distinct weights. Establishing whether the true ratio is sublinear for unbounded $W$ remains an open question.
Summary updated