arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.00098cs.DScs.DM
收藏

利用对应比较图的拓扑排序对数组进行排序

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

Balaram Behera

摘要:

对高效排序的追求正在进行中,我们将探索基于图的稳定排序策略,特别是采用比较图。我们使用拓扑排序将比较图映射到线性域,并且我们可以操纵我们的图,使得得到的拓扑排序是排序数组。利用比较图中的哈密尔顿路与拓扑排序之间的关系,设计了一个在最优$O(n \log n)$时间内运行的分治算法.在这个过程中,我们构造了一个新的合并过程的相关不变性质的图,我们使用。此外,该方法比著名的{ \sc MergeSort}更节省空间,因为我们只修改了我们的固定图。

英文摘要:

The quest for efficient sorting is ongoing, and we will explore a graph-based stable sorting strategy, in particular employing comparison graphs. We use the topological sort to map the comparison graph to a linear domain, and we can manipulate our graph such that the resulting topological sort is the sorted array. By taking advantage of the many relations between Hamiltonian paths and topological sorts in comparison graphs, we design a Divide-and-Conquer algorithm that runs in the optimal $O(n \log n)$ time. In the process, we construct a new merge process for graphs with relevant invariant properties for our use. Furthermore, this method is more space-efficient than the famous {\sc MergeSort} since we modify our fixed graph only.

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

↑