Algorithms of this type, seen in line D on the Order of Algorithms graph, have a log N procedure that must be applied N times or an N procedure applied log N times.
The recursive MergeSort is a O(N * log2N) algorithm (although more generally you could just say O(N * log N) as the base is not important in Big-O).
As the graph shows, these algorithms are markedly more efficient than our next category, quadratics.
Last modified: January 24, 2024
Back to Linear Algorithms, O(n)