Multiplying matrices A1 (d0×d1), A2 (d1×d2), ..., An costs p*q*r scalar multiplications per pair. The order of multiplication changes the total cost hugely.
Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.
Start 7-day free trial