K-way merge algorithm: Difference between revisions

Content deleted Content added
Line 94:
One can show that no comparison-based K-Way Merge algorithm exists with a running time in O(n f(k)) where f grows asymptotically slower than a logarithm.
The proof is a straight forward reduction from comparison-based sorting.
Suppose that such an algorithm existed, then we cancould construct a comparison-based sorting algorithm with running time O(n f(n)) as follows:
Chop the input array into n arrays of size 1.
Merge these n arrays with the K-Way Merge algorithm.