algo master6

8
Master Method Proof (Part II) Design and Analysis of Algorithms I

Upload: navediitr

Post on 04-Dec-2015

222 views

Category:

Documents


0 download

DESCRIPTION

algo master 6

TRANSCRIPT

Page 1: Algo Master6

Master Method

Proof (Part II)Design and Analysis

of Algorithms I

Page 2: Algo Master6

Tim Roughgarden

The Story So Far/Case 1Total work: (*)

Page 3: Algo Master6

Tim Roughgarden

Basic Sums Fact

Page 4: Algo Master6

Tim Roughgarden

Case 2Total work: (*)

Page 5: Algo Master6

Tim Roughgarden

Case 3Total work: (*)

Page 6: Algo Master6

The number of levels of the recursion tree.

The number of nodes of the recursion tree.

The number of edges of the recursion tree.

The  number   of   leaves   of   the   recursion   tree.

Which of the following quantities is equal to ?

Page 7: Algo Master6

Tim Roughgarden

Case 3 continuedTotal work: (*)

Page 8: Algo Master6

Tim Roughgarden

The Master MethodIf then if (Case 1) if (Case 2) if (Case 3)