Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. 12,30,21,8,6,9,1,7. The merge sort algorithm works as follows:
  2.  
  3. (a) 12,30,21,8 6,9,1,7 //divide stage
  4. (b) 12,30 21,8 6,9 1,7 //divide stage
  5. (c) 12 30 21 8 6 9 1 7 //Final divide stage
  6. (d) 12,30 8,21 6,9 1,7 //Merge Stage
  7. (e) 8,12,21,30 ..... // Analyze this stage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement