What's the difference between merge sort and direct merge sort?
Merge sort
Collapse
X
-
Tags: None
-
-
You require it? What about Google?
kind regards,
Jos (moderator)
ps. everybody volunteers here; you can't require an immediate answer or assistence no matter how urgent the question might be to you; it isn't urgent to us.Comment
-
I already know one of them. If the link you gave was merge sort then it's direct merge that I don't understand. Google doesn't seem to have it.Comment
-
Read the link: if you can merge two (consecutive) sub-arrays in place, sometimes it's called 'direct merging'. It's a bit of a complicated juggling with the individual elements to accomplish it. The normal merging uses an auxiliary array for the merge.
kind regards,
JosComment
-
So that's the whole difference? Swapping the array elements instead of placing them in another array? Well why didn't you just say so in the first place?Comment
-
It wasn't urgent to me; the difference is additional memory versus the complexity of the algortithm. It's your assignment so you study it. I'm sure you have a book that discusses the topic.
kind regards,
JosComment
Comment