Recurrence Relations
Unroll T(n) = T(n/2) + 1 → O(log n).
INSTRUCTION
MEMORY
CONSOLE
MEMORY — every variable is a labeled box
(empty — no variables created yet)
CONSOLE — what the program says back
>▍ nothing printed yet
Unroll T(n) = T(n/2) + 1 → O(log n).
MEMORY — every variable is a labeled box
CONSOLE — what the program says back