登录
首页 » Visual C++ » zoj1094

zoj1094

于 2012-06-10 发布 文件大小:1KB
0 182
下载积分: 1 下载次数: 4

代码说明:

  zoj094 Matrix multiplication problem is a typical example of dynamical programming. Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which multiplications are performed is arbitrary. However, the number of elementary multiplications needed strongly depends on the evaluation order you choose. For example, let A be a 50*10 matrix, B a 10*20 matrix and C a 20*5 matrix. There are two different strategies to compute A*B*C, namely (A*B)*C and A*(B*C). The first one takes 15000 elementary multiplications, but the second one only 3500. Your job is to write a program that determines the number of elementary multiplications needed for a given evaluation strategy. (Matrix multiplication problem is a typical example of dynamical programming. Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which multiplications are performed is arbitrary. However, the number of elementary multiplications needed strongly depends on the evaluation order you choose. For example, let A be a 50*10 matrix, B a 10*20 matrix and C a 20*5 matrix. There are two different strategies to compute A*B*C, namely (A*B)*C and A*(B*C). The first one takes 15000 elementary multiplications, but the second one only 3500. Your job is to write a program that determines the number of elementary multiplications needed for a given evaluation strategy. )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • mofang
    利用计算机证明任意组合的魔方均可以在20步之内还原(Using computer proof can be any combination of cube reduction in 20 steps )
    2014-02-09 12:53:55下载
    积分:1
  • mudlqydm
    奇迹登录器源码,有需要的可以下载研究研究,本人不是很懂这个东西,希望能指点一二!(Miracle login source code, there is a need to download the study, I do not know this thing, I hope to be able to point one or two!)
    2016-01-21 20:17:25下载
    积分:1
  • multilang_src
    用DLL实现多语言包,可以进行本地化开发(DLL used to achieve multi-language package, can be localized development)
    2007-09-27 10:01:34下载
    积分:1
  • dx9_spot_light
    说明:  DirectX9.0 编程基础 点光源(DirectX 9.0 basis points Source Programming)
    2006-01-14 23:26:11下载
    积分:1
  • EX33_2812-FFT-FIR
    DSP2812 滤波代码 开发板历程 简单明了(DSP2812 )
    2012-04-20 18:28:49下载
    积分:1
  • WinDriverPCI
    说明:  关于Windriver编写PCI驱动的教程(windriver )
    2009-08-26 09:38:56下载
    积分:1
  • FreeHandDraw
    实现地图符号的定制与开发 有一定的参考价值(achieve map symbol customization and the development of certain reference value)
    2007-05-15 22:21:24下载
    积分:1
  • MultControl
    这是一个多列的树/列表控制类库(87KB),对大家学习很有用的(This is a multi-column tree/list control class library (87KB), for all of us to learn useful)
    2009-06-06 08:51:52下载
    积分:1
  • clock
    系统主要实现时间的显示,主要包括获取系统时间然后通过时钟的模拟界面进行时间的显示。(System main time display, including access to the system time and then displays the time by the clock of the analog interface.)
    2013-11-30 12:04:57下载
    积分:1
  • cn700_vc347772244
    银行家算法的实现 vc++开发 有需要的可以下载使用(bankers algorithm development to achieve vc need can be downloaded use)
    2005-06-30 10:37:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载