Question

Given arrays of the following sizes, determine the optimal order of multiplication. Show the arrays M and P. Az x Az x A3 x A

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

Suppose there are 2 arrays X and Y. Size of x = a*b Size of y = 6*c Size of resulting array Xxy = a*c Number of operations re

2) (A, + (A₂xA;)) xA4 For (A, + (A₂xA;)), no. of ops=140+ 3x4x7 = 224 Size of (A, x(A,xAx)) 3*7 For (A, x(A2xAz) x Ay, no. of

So, optimal order of multiplication is : (A,+A₂) × (A₃xA4) with 210 operations M= A, XA₂ IP= AzxA4

Add a comment
Know the answer?
Add Answer to:
Given arrays of the following sizes, determine the optimal order of multiplication. Show the arrays M...
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