Question: Q 1 Matrix Multiplication We are given six matrices A 1 , A 2 , A 3 , A 4 , A 5 and A

Q1 Matrix Multiplication
We are given six matrices A1,A2,A3,A4,A5 and A6 for which we wish to compute the product
A=A1*A2*A3*A4*A5*A6 where Ai is a di-1di matrix. Since matrix multiplication is
associative we can parenthesize the expression for A any way we wish and we will end up with the
same result. What is the minimum number of scalar multiplications we have to perform if d0=3,
d1=4,d2=6,d3=4,d4=2,d5=3 and d6=5? How do we parenthesize the expression for A
to achieve this number? In subquestions 1.1-1.5 you should provide the entries of the dynamic
programming table M[i,j] as stated; recall that M[i,j], for j>i, holds the minimum number of
multiplications required for computing the product Ai*Ai+1*dots*Aj.
Q1.1
Give the values of M[i,i+1] for i=1,...,5 separated by a single blank symbol.
Q1.2
Give the values of M[i,i+2] for i=1,...,4 separated by a single blank symbol.
Q1.3
Give the values of M[i,i+3] for i=1,...,3 separated by a single blank symbol.
Q1.4
Give the values of M[1,5] and M[2,6] separated by a single blank symbol.
Q1.5
Give the value of M[1,6].
Q1.6
How do you place the parentheses to compute A by the minimum number of scalar multiplications? For multiplication from left to right write ((((A1A2)A3)A4)A5)A6.
Q1.7
How many ways to place the paratheses to compute A are there that achieve the minimum number of scalar multiplications?
 Q1 Matrix Multiplication We are given six matrices A1,A2,A3,A4,A5 and A6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!