Proof (Part II)

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

description

Master Method. Proof (Part II). Design and Analysis of Algorithms I. The Story So Far/Case 1. Total work: (*). Basic Sums Fact. Case 2. Total work: (*). Case 3. Total work: (*). Which of the following quantities is equal to ?. The number of levels of the recursion tree. - PowerPoint PPT Presentation

Transcript of Proof (Part II)

Page 1: Proof (Part  II)

Master Method

Proof (Part II)Design and Analysis

of Algorithms I

Page 2: Proof (Part  II)

Tim Roughgarden

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

Page 3: Proof (Part  II)

Tim Roughgarden

Basic Sums Fact

Page 4: Proof (Part  II)

Tim Roughgarden

Case 2Total work: (*)

Page 5: Proof (Part  II)

Tim Roughgarden

Case 3Total work: (*)

Page 6: Proof (Part  II)

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: Proof (Part  II)

Tim Roughgarden

Case 3 continuedTotal work: (*)

Page 8: Proof (Part  II)

Tim Roughgarden

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