3 ms·
For sorting big lists of numbers mergesort could be used, only resorting to twittersort when the list of numbers is small enough [1]. In fact, that's the way me
by emmanueloga_ 12y ago
For sorting big lists of numbers mergesort could be used, only resorting to twittersort when the list of numbers is small enough [1]. In fact, that's the way mergesort is generally implemented (except the "cutoff" algorithm is usually insertionsort, not tweetsort :p).
1: http://en.wikipedia.org/wiki/Merge_sort#Optimizing_merge_sort http://en.wikipedia.org/wiki/Merge_sort#Optimizing_merge_sor...