arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.07222cs.DS
收藏

再论随机和最坏广义排序

Stochastic and Worst-Case Generalized Sorting Revisited

William Kuszmaul, Shyam Narayanan

摘要:

\emph{generalized sorting problem}是标准比较排序的受限版本,我们希望对$n$元素进行排序,但只允许对的子集进行比较。形式上,在$n$元素$v_1, \dots, v_n$上存在某个已知图$G = (V, E)$,目标是使用尽可能少的比较来确定元素的真实顺序,其中所有比较$(v_i, v_j)$必须是$E$中的边。我们承诺,如果真正的排序是$x_1 < x_2 < \cdots < x_n$,对于$\{x_i\}$是顶点$\{v_i\}$的未知置换,那么对于所有$i$,则是$(x_i, x_{i+1}) \in E$:这个哈密顿路径确保排序实际上是可能的。在这项工作中,我们提高了随机图和最坏情况图的广义排序的界限。对于Erdens-Renyi随机图$G(n, p)$(添加承诺的Hamilton路径,以确保排序是可能的),我们提供了一个算法,广义排序与预期的$O(n \log (np))$比较,我们证明是最佳的查询复杂性。这大大改进了Huang,Kannan和Khanna(FOCS 2011)的最知名算法,该算法使用$\tilde{O}(\min(n \sqrt{np}, n/p^2))$比较。对于任意图$G$与$n$顶点和$m$边(再次承诺的哈密顿路径),我们提供了一个算法广义排序与$\tilde{O}(\sqrt{mn})$比较。这改进了Huang等人的最佳已知算法,其使用$\min(m, \tilde{O}(n^{3/2}))$比较。

英文摘要:

The \emph{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, \dots, 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 < \cdots < x_n$ for $\{x_i\}$ an unknown permutation of the vertices $\{v_i\}$, then $(x_i, x_{i+1}) \in 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 $\tilde{O}(\min(n \sqrt{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 $\tilde{O}(\sqrt{mn})$ comparisons. This improves over the best known algorithm of Huang et al., which uses $\min(m, \tilde{O}(n^{3/2}))$ comparisons.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑