Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 7 Online
OpenStudy (anonymous):

Shellsort vs Mergesort, which one to go for?

OpenStudy (maitre_kaio):

It depends on a lot of factors... http://en.wikipedia.org/wiki/Sorting_algorithm#Comparison_of_algorithms Some questions: What's the size of the list to sort (will it use a lot of memory?) Do you want to go for the best case, or will you take into account the average or worst case (is the list mosly sorted or not ?) Do you need a stable algorithm or not ? I bet I didn't found all the questions that you may take into account. There is no golden hammer, you have to choose the algorithm best suited to your situation.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!