Merge Sort (Comparison Sorting Sorting): Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
(Created page with "== Time Complexity == $O(n logn)$ == Space Complexity == $O(n)$ words (need some way to store partially processed lists while merging) == Description == == Approximate? == Exact == Randomized? == No, deterministic == Model of Computation == Word RAM == Year == 1945 == Reference == -")
 
No edit summary
 
Line 1: Line 1:
== Time Complexity ==  
== Time Complexity ==  


$O(n logn)$
$O(n \log n)$


== Space Complexity ==  
== Space Complexity ==  

Latest revision as of 08:29, 10 April 2023

Time Complexity

$O(n \log n)$

Space Complexity

$O(n)$ words

(need some way to store partially processed lists while merging)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM

Year

1945

Reference

-