矩阵相乘序问题8.pptVIP

  • 4
  • 0
  • 约6.44千字
  • 约 31页
  • 2018-07-08 发布于福建
  • 举报
矩阵相乘序问题8

The Matrix Multiplication Order Problem (矩阵相乘的序问题) 例 Multiply arrays with the size shown: A1 × A2 × A3 × A4 30×1 1×40 40×10 10 ×25 Matrix multiplication is associative 满足结合律 A(BC)=(AB)C How many multiplications are done ? ((A1 A2 )A3)A4 30·1 ·40+ 30·40 ·10+ 30·10 ·25=20,700 A1 ( A2 (A3A4 ) ) 40·10 ·25+ 1·40 ·25+ 30·40 ·25=11,750 (A1 A2 ) ( A3A4 ) 30·1 ·40+ 40·10 ·25+ 30·40 ·25=41,200 A1 (( A2 A3)A4 ) 1·40 ·10+ 1·10 ·25+ 30·1 ·25=1,400 For the general problem, suppose the dimensions of Ai are di-1 × di for 1≤i≤n A1

文档评论(0)

1亿VIP精品文档

相关文档