An introduction to merge sorts

0 comments

Now I’d like to show you another sorting algorithm that is also a little bit more efficient than bubble sort.

The merge sort algorithm uses what’s called a divide-and-conquer strategy. Over the course of the sort, the list is separated out in single element lists. Each of these lists is ordered, they are then repeatedly merged together with their neighbours in order, until they join together again as one sorted list.