paint-brush
Essential Algorithms: The Merge Sortby@joshuaecampbell
993 reads
993 reads

Essential Algorithms: The Merge Sort

by Joshua Campbell13mFebruary 29th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Merge Sort is one of the most reliably consistent and well-performing sorting algorithms for sorting large datasets. It performs almost 40% fewer comparisons at it's worst than Quick Sort does on average. The Merge Sort algorithm takes a divide and conquer approach recursively. It breaks the array into smaller and smaller ones by calling itself, until each one only has one element inside of it. Then, it compares two numbers at a time, puts them into order and returns them to itself. Merge Sort performs all of the operations necessary to completely sort the list.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Essential Algorithms: The Merge Sort
Joshua Campbell HackerNoon profile picture
Joshua Campbell

Joshua Campbell

@joshuaecampbell

L O A D I N G
. . . comments & more!

About Author

Joshua Campbell HackerNoon profile picture
Joshua Campbell@joshuaecampbell

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite