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

树排序的有效算法

Efficient Algorithms for Sorting in Trees

Jishnu Roychoudhury, Jatin Yadav

摘要:

排序是计算机科学中的一个基本问题,通常用于序列或全序。最近,在偏序集(或偏序集)上的一种更一般的排序形式被研究,其中一些元素对是不可比的。一般的偏序集排序算法的查询复杂度下限为$Ω(wn + n \log n)$,其中$w$是偏序集的宽度。我们考虑的问题,排序树,偏序的一个特殊情况下,参数化的复杂性,相对于$d$,树中的元素的最大程度,$d$通常是远远小于$w$在树上。例如,在完全二叉树中,$d = Θ(1), w = Θ(n)$。本文提出了一种在最坏情况下的期望$O(dn\log n)$查询和时间复杂度下对树偏序集进行排序的随机算法。这改进了先前的$O(dn \log^2 n)$的上界。我们的算法是第一个最佳的有界度树。我们还提供了一个新的下界的$Ω(dn + n \log n)$的最坏情况下的查询复杂度排序树偏序集。最后,我们提出了第一个确定性算法排序树偏序集,具有较低的总复杂度比现有的算法排序一般偏序。

英文摘要:

Sorting is a foundational problem in computer science that is typically employed on sequences or total orders. More recently, a more general form of sorting on partially ordered sets (or posets), where some pairs of elements are incomparable, has been studied. General poset sorting algorithms have a lower-bound query complexity of $Ω(wn + n \log n)$, where $w$ is the width of the poset. We consider the problem of sorting in trees, a particular case of partial orders, and parametrize the complexity with respect to $d$, the maximum degree of an element in the tree, as $d$ is usually much smaller than $w$ in trees. For example, in complete binary trees, $d = Θ(1), w = Θ(n)$. We present a randomized algorithm for sorting a tree poset in worst-case expected $O(dn\log n)$ query and time complexity. This improves the previous upper bound of $O(dn \log^2 n)$. Our algorithm is the first to be optimal for bounded-degree trees. We also provide a new lower bound of $Ω(dn + n \log n)$ for the worst-case query complexity of sorting a tree poset. Finally, we present the first deterministic algorithm for sorting tree posets that has lower total complexity than existing algorithms for sorting general partial orders.

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

↑