Matrix Multiplication Parenthesization

Question

Example

Pic - subproblem tree, memo table, topo order

Analysis - substring

Recurrence

going from outermost

Top-down

O(n^2) subproblems and O(n) to compute each subproblem so O(n^3)

Bottom-up

References

6.006 Lecture 21 Notes

Last updated