wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following chain of 4 matrices
A1A4

A12×3
A23×5
A35×4
A44×2

The following table M[4,4] is filled up using Bottom-up dynamic programming to find the number of multiplications to multiply the above 4 matrices:


The correct values of P & Q are

A
60, 140
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
60, 82
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
100, 140
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
50, 82
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon