Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 12,30,21,8,6,9,1,7. The merge sort algorithm works as follows:
- (a) 12,30,21,8 6,9,1,7 //divide stage
- (b) 12,30 21,8 6,9 1,7 //divide stage
- (c) 12 30 21 8 6 9 1 7 //Final divide stage
- (d) 12,30 8,21 6,9 1,7 //Merge Stage
- (e) 8,12,21,30 ..... // Analyze this stage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement