Master
Method
Proof
(Part
II)
Design
and
Analysis
of
Algorithms
I
The
Story
So
Far/Case
1
=
1
for
all
j
•
=1
=
(logbn
+
1)
[
end
Case
1
]
Tim
Roughgarden
Basic
Sums
Fact
For
,
we
have
Proof
:
by
inducKon
(you
check)
Upshot:
1. If
r<1
is
constant,
RHS
is
<=
=
a
constant
2. If
r>1
is
constant,
RHS
is
<=
Tim
Roughgarden
Case
2
:=
r
•
<=
a
constant
(
independent
of
n)
[
by
basic
sums
fact
]
[
total
work
dominated
by
top
level
]
Tim
Roughgarden
Case
3
:=
r
>
1
•
<=
constant
*
largest
term
Tim
Roughgarden
Level
0
a
children
Level
1
Tem
ver
Level
logbn
#
of
leaves
=
The
number
of
levels
of
the
recursion
tree.
The
number
of
nodes
of
the
recursion
tree.
The
number
of
edges
of
the
recursion
tree.
Case
3
conKnued
•
More
intuiKve
Simpler
to
apply
[End
Case
3]
Tim
Roughgarden
The
Master
Method
•
Tim
Roughgarden