Week 3 Discussion Forum

Why is insertion sort better?

Why is insertion sort better?

by Abu Salkin -
Number of replies: 0

Insertion sort has a fast best-case running time and is a good sorting algorithm to use if the input list is already mostly sorted. For larger or more unordered lists, an algorithm with a faster worst and average-case running time, such as mergesort, would be a better choice.

48 words