- #1
zak100
- 462
- 11
Hi,
I am studying Matrix chain Multiplication to find out the optimal way of multiplying a series of matrices so that we can reduce the number of multiplications. I have got this example from the book which multiplies the matrices having dimensions given below:
A1 30 * 35
A2 32 * 15
A3 15 * 5
A4 5 * 10
A5 10 * 20
A6 20 * 25
From these matrices, it creates the 2 tables:
The algorithm is given below:
MTM(A, s, I, j)
If j> i
Then Xß MCM(A, s, I, s[I,j])
Y ß MCM(A, s, s[I,j] + 1, j)
return MCM (X, Y)
else return Ai
They are invoking the algorithm by:
MCM(A, s, 1, 6)
Can some body guide me what is the value of A & s?
After that i want to find out the best way of ordering these matrices for multiplication. Some body please guide me.
Zulfi.
I am studying Matrix chain Multiplication to find out the optimal way of multiplying a series of matrices so that we can reduce the number of multiplications. I have got this example from the book which multiplies the matrices having dimensions given below:
A1 30 * 35
A2 32 * 15
A3 15 * 5
A4 5 * 10
A5 10 * 20
A6 20 * 25
From these matrices, it creates the 2 tables:
The algorithm is given below:
MTM(A, s, I, j)
If j> i
Then Xß MCM(A, s, I, s[I,j])
Y ß MCM(A, s, s[I,j] + 1, j)
return MCM (X, Y)
else return Ai
They are invoking the algorithm by:
MCM(A, s, 1, 6)
Can some body guide me what is the value of A & s?
After that i want to find out the best way of ordering these matrices for multiplication. Some body please guide me.
Zulfi.