The matrix-chain multiplication problem. and a dynamic programming algorithm for
ID: 3608634 • Letter: T
Question
The matrix-chain multiplication problem.
and a dynamic programming algorithm for it was presented (here werefer to the problem
of computing only the smallest possible number of scalarmultiplications, not an actual
schedule of multiplications that achieves it). Recall that thealgorithm by filling the entries
of a table C in a certain order. Show what the table C would
look like after you fill its entries when the input to the problemis 8, 3, 2, 19, 18, 7, i.e., there
are five matrices, the first of which is an 8 × 3 matrix, thesecond a 3 × 2, etc.
The matrix-chain multiplication problem.
and a dynamic programming algorithm for it was presented (here werefer to the problem
of computing only the smallest possible number of scalarmultiplications, not an actual
schedule of multiplications that achieves it). Recall that thealgorithm by filling the entries
of a table C in a certain order. Show what the table C would
look like after you fill its entries when the input to the problemis 8, 3, 2, 19, 18, 7, i.e., there
are five matrices, the first of which is an 8 × 3 matrix, thesecond a 3 × 2, etc.