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

两个相似表带合并的最优性

On the Optimality of Tape Merge of Two Lists with Similar Size

Qian Li, Xiaoming Sun, Jialin Zhang

摘要:

以最少的成对比较次数合并排序列表的问题只在少数特殊情况下得到了完全解决。Graham和Karp \cite{taocp}分别发现,当两个列表大小相同时,磁带合并算法在最坏的情况下是最优的。在开创性的论文中,Stockmeyer和Yao \cite{yao},Murphy和\cite{3k3},以及Christen \cite{christen1978optimality}独立地表明,当要合并的列表的大小$m$和$n$满足$m\leq n\leq\lfloor\frac{3}{2}m\rfloor+1$时,磁带合并算法在最坏情况下是最优的。本文扩展了这一结果表明,磁带合并算法是最佳的最坏的情况下,每当一个列表的大小不大于1.52倍的大小。我们用来证明下界的主要工具是Knuth的对抗方法\cite{taocp}。此外,我们表明,下限不能通过Knuth的对手的方法提高到1.8。我们还开发了一个新的不等式克努特的对手的方法,这可能是有趣的,在其本身的权利。此外,我们设计了一个简单的程序,以实现不断改善的上界$2m-2\leq n\leq 3m $。

英文摘要:

The problem of merging sorted lists in the least number of pairwise comparisons has been solved completely only for a few special cases. Graham and Karp \cite{taocp} independently discovered that the tape merge algorithm is optimal in the worst case when the two lists have the same size. In the seminal papers, Stockmeyer and Yao\cite{yao}, Murphy and Paull\cite{3k3}, and Christen\cite{christen1978optimality} independently showed when the lists to be merged are of size $m$ and $n$ satisfying $m\leq n\leq\lfloor\frac{3}{2}m\rfloor+1$, the tape merge algorithm is optimal in the worst case. This paper extends this result by showing that the tape merge algorithm is optimal in the worst case whenever the size of one list is no larger than 1.52 times the size of the other. The main tool we used to prove lower bounds is Knuth's adversary methods \cite{taocp}. In addition, we show that the lower bound cannot be improved to 1.8 via Knuth's adversary methods. We also develop a new inequality about Knuth's adversary methods, which might be interesting in its own right. Moreover, we design a simple procedure to achieve constant improvement of the upper bounds for $2m-2\leq n\leq 3m $.

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

↑