Multiway In-Place Merging

被引:0
|
作者
Geffert, Viliam [1 ]
Gajdos, Jozef [1 ]
机构
[1] Safarik Univ, Dept Comp Sci, Kosice 04154, Slovakia
来源
FUNDAMENTALS OF COMPUTATION THEORY, PROCEEDINGS | 2009年 / 5699卷
关键词
In-place algorithms; merging; sorting; HEAPSORT; MOVES;
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present an algorithm for asymptotically efficient k-way merging. Given an array A containing sorted subsequences A(1), ... , A(k) Of respective lengths 711, 71k, where Ei=1 ?ti = 71., our algorithm merges A,,..., Ak in-place, into a single sorted sequence, performing [lg k] . n + o(n) element comparisons and 3 . n + o(n) element moves. That is, our algorithm runs in linear time, with the number of moves independent of k, the number of input sequences.
引用
收藏
页码:133 / 144
页数:12
相关论文
共 50 条