Question

15] Dynamic Programming a. We are given a set of matrices Ao.A1, A2.. An-1. which we must multiply in this order. We let (di,

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ni,j = mini<=k<j { Ni,k + Nk+1,j + didk+1dj+1 }.

--> Ni,j is minimum number of multiplications required to multiply Ai , Ai+1 , ....... , Aj

--> So, it can be broken to Ni,k + Nk+1,j + didk+1dj+1

--> k is such that i<=k<j.

--> Ni,j value is one of such k's, which gives the minimum value.

Add a comment
Know the answer?
Add Answer to:
15] Dynamic Programming a. We are given a set of matrices Ao.A1, A2.. An-1. which we must multiply in this order. We let (di, di+1) be the dimension of matrix Ai. The minimal number Nuj of operati...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT