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

多路协同排名:无需合并的有序序列索引空间划分

Multi-Way Co-Ranking: Index-Space Partitioning of Sorted Sequences Without Merge

Independent Researcher -5em;Independent Researcher -4em

Amit Joshi

AI总结:

提出一种无合并的多路协同排名算法,通过索引空间二分搜索在 $O(\log(\sum n_t)\log m)$ 时间内划分有序序列,适用于分布式背包、并行合并和多流连接。

摘要:

我们提出了一种无合并的多路协同排名算法,该问题旨在计算切割索引 $i_1,\dots,i_m$,以划分 $m$ 个有序序列,使得所有前缀段合计恰好包含 $K$ 个元素。我们的方法将两列表协同排名扩展到任意 $m$,维护每个序列的边界,这些边界收敛到一致的全局前沿,而无需执行任何多路合并或值空间搜索。相反,我们对索引空间应用二分搜索。该算法运行时间为 $O(\log(\sum_t n_t)\\,\log m)$,空间为 $O(m)$,与 $K$ 无关。我们通过交换论证证明了正确性,并讨论了在分布式分数背包、并行合并分区和多流连接中的应用。

英文摘要:

We present a merge-free algorithm for multi-way co-ranking, the problem of computing cut indices $i_1,\dots,i_m$ that partition each of the $m$ sorted sequences such that all prefix segments together contain exactly $K$ elements. Our method extends two-list co-ranking to arbitrary $m$, maintaining per-sequence bounds that converge to a consistent global frontier without performing any multi-way merge or value-space search. Rather, we apply binary search to \emph{index-space}. The algorithm runs in $O(\log(\sum_t n_t)\,\log m)$ time and $O(m)$ space, independent of $K$. We prove correctness via an exchange argument and discuss applications to distributed fractional knapsack, parallel merge partitioning, and multi-stream joins. Keywords: Co-ranking \sep partitioning \sep Merge-free algorithms \sep Index-space optimization \sep Selection and merging \sep Data structures

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

↑