Dynamic programming can be used to develop an algorithm for solving the matrix-chain multiplication problem introduced in Section 3.3. This is the problem of determining how the product
a) Show that the brute-force method of determining the minimum number of integer multiplications needed to solve amatrix-chain multiplication problem has exponential worst-case complexity. [Hint: Do this by first showing that the order of multiplication of matrices is specified by parenthesizing the product. Then, use Example 5 and the result of part (c) of Exercise 43 in Section 8.4.)
b) Denote by
c) Explain why part (b)leads to the recurrence relation
e) Show that your algorithm from part (d) has 0(n3) worst-case complexity in terms of multiplications of integers.
Want to see the full answer?
Check out a sample textbook solutionChapter 8 Solutions
Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991
- 15. Reverse the elementary row operations used in Example 2.9 to show that we can convertarrow_forwardConsider the matrix A=[2314]. Show that any of the three types of elementary row operations can be used to create a leading 1 at the top of the first column. Which do you prefer and why?arrow_forwardShow that |a1111a1111a1111a|=(a+3)(a1)3arrow_forward
- Find the sequence of the elementary matrices whose product is the non singular matrix below. [2410]arrow_forwardIn a previous section, we showed that matrix multiplication is not commutative, that is, ABBA in most cases. Can you explain why matrix multiplication is commutative for matrix inverses, that is, A1A=AA1 ?arrow_forward
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage LearningAlgebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage Learning
- College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage LearningElementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage LearningAlgebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage