SIAM Journal on Computing · 1980 · 20 citations · 3 references
Natural SciencesComputer ScienceMathematicsAlgorithmsCombinatoricsDiscrete MathematicsCombinatorial Number TheoryCombinatorial OptimizationNumber-theoretic AlgorithmsSorting AlgorithmsSorting ProblemsComparison ComplexityLower Bounds For SortingMerge OperationsMerge SortPairwise ComparisonPairwise Comparison Models
Let $M(m,n)$ be the minimum number of pairwise comparisons which will always suffice to merge two linearly ordered lists of lengths m and n. We prove that $M(m,m + d) = 2m + d - 1$ whenever $m \geqq 2d - 2$. This generalizes earlier results of Graham and Karp $(d = 1)$, Hwang and Lin $(d = 2,3)$, Knuth $(d = 4)$, and shows that the standard linear merging algorithm is optimal whenever $m \leqq n \leqq \lfloor 3m/2 \rfloor + 1$.
3
C Rogers · The Computer Journal · 1972 · 186 citations · Full text
Optimal merging of 2 elements with n elements
F. K. Hwang, Shengmao Lin · Acta Informatica · 1971 · 50 citations
Optimal Merging of 3 Elements with <i>n</i> Elements
F. K. Hwang · SIAM Journal on Computing · 1980 · 13 citations