K-way_Merge_Sort - K-way Merge Sort Can we make merge sort...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
K-way Merge Sort
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Can we make merge sort more efficient by dividing by k instead of 2? . .
Background image of page 2
K-way merge sort . . 51 2 39 10 6 16 7
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Running time: O(K Nlog k N) . . . . . . N N/K N/K N/K 2 N/K 2 N/K 2 N/K 2 11 1 111 1 1 1 1 ……
Background image of page 4
Improved K-way merge sort . . 51 2 39 10 6 16 7
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Running time: O(N log 2 K log k N) . . . . . . N N/K N/K N/K 2 N/K 2 N/K
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

K-way_Merge_Sort - K-way Merge Sort Can we make merge sort...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online