Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.md

Merge sort

A merge sort is an efficient sorting algorithm that recursively splits a list into two similarly sized lists (left and right), sorts each list, and merges the result.

Characteristics

Complexity

🔔 Complexity is considered in terms of worst case.

Time complexity

Notes
Θ(n log n)

Space complexity

Notes
Θ(n) In this implementation two temporary lists are created and merged recursively