Divide and Conquer Recurrences




CS146

Chris Pollett

Feb 19, 2014

Outline

Introduction

Maximum Subarray Problem

Stock price counterexample

A Divide and Conquer Approach to Maximum Subarray

Image shows the three subcases of Maximum Subarray

Analyzing Maximum Subarray

Matrix Multiplication

A Simple Divide and Conquer Algorithm for Matrices

Analysis of SQUARE-MATRIX-MULTIPLY-RECURSIVE

Strassen's Method

The Matrices Used in Strassen's Method

S matrices in Strassen's Algorithm P matrices in Strassen's Algorithm

The Substitution Method