K-way merge algorithm: Difference between revisions

Content deleted Content added
Aepp1 (talk | contribs)
m Typo
m Lower Running Time Bound: replaced: straight forward → straightforward using AWB
Line 93:
 
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 forwardstraightforward reduction from comparison-based sorting.
Suppose that such an algorithm existed, then we could 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.