Hi! i was asked to complete a mergesort program as to check if mergesort is a stable algorithm.I know what is that but i cant imagine how i can do it.Can u help me?
stable sort
Collapse
X
-
Originally posted by kostgirHi! i was asked to complete a mergesort program as to check if mergesort is a stable algorithm.I know what is that but i cant imagine how i can do it.Can u help me?
What sort of mergesort are you trying to do? Basically, you have seperate sorted arrays/files, or whatever you are using, and then you merge them together, to create one single sorted file.
Comment