Skip to content
LaTeX (KaTeX) templates

Math — Sorting Complexity

Time complexity of sorting algorithms.

Template previewLaTeX (KaTeX)
bubble / insertion: O(n2)\text{bubble / insertion: } O(n^2)merge / heap: O(nlog⁡n)\text{merge / heap: } O(n\log n)quicksort: O(nlog⁡n) average\text{quicksort: } O(n\log n)\ \text{average}comparison-sort bound: Ω(nlog⁡n)\text{comparison-sort bound: } \Omega(n\log n)

What this template contains

Equations
4
Source
4 lines

Make it your own.

\text{bubble / insertion: } O(n^2)

\text{merge / heap: } O(n\log n)

\text{quicksort: } O(n\log n)\ \text{average}

\text{comparison-sort bound: } \Omega(n\log n)