~/ learn/ comp-372/ cards/ Solving recurrences I: recursion-tree & substitution
1 of 4

Type the substitution guess and the key log identity for merge sort

Type the substitution guess and the key log identity for merge sort

Answer

T(n) <= c*n*lg(n) lg(n/2) = lg(n) - 1 => c*n*lg(n) - c*n + Theta(n) <= c*n*lg(n)

The identity lg(n/2) = lg n − 1 generates the −cn term that absorbs the Θ(n) driving cost. Without that absorbing term you would need the subtract-a-lower-order-term trick instead.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/3531f255-450f-4dda-85d6-7c1b722829e1/flashcard utf-8 LF