For the following list, which two sorting algorithms have the same running time (ignoring constant factors)?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This list is not already ordered. Because of this, Insertion Sort takes O ( n 2 ) time, Bubble Sort takes O ( n 2 ) time, and Mergesort takes O ( n l g n ) time.