Slides Algo-Master4 Typed PDF
Slides Algo-Master4 Typed PDF
Method
Proof
(Part
I)
Design
and
Analysis
of
Algorithms
I
The
Master
Method
•
Preamble
Assume
:
recurrence
is
I.
(
For
some
constant
c
)
II.
And
n
is
a
power
of
b.
(general
case
is
similar,
but
more
tedious
)
Level
1
.
.
.
Base
cases
.
(size
1)
Level
logbn
Tim
Roughgarden
Work
at
a
Single
Level
Total
work
at
level
j
[ignoring
work
in
recursive
calls]
Tim
Roughgarden
Total
Work
Summing
over
all
levels
j
=
0,1,2,…,
logbn
:
Total
work
Tim Roughgarden