登录
首页 » Visual C++ » zoj1094

zoj1094

于 2012-06-10 发布 文件大小:1KB
0 169
下载积分: 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 个回复

  • bcast
    此程序实现了IPX/UDP/TCP三种协议的广播( This procedure has realized the IPX/UDP/TCP three kind of agreements broadcasts )
    2020-06-26 12:20:02下载
    积分:1
  • 392440Youngs-VOF
    使用VOF进行液-液两相流的界面追踪,非常使用,强烈推荐(For liquid- liquid two phase flow using VOF interface tracking )
    2021-01-19 23:08:43下载
    积分:1
  • beijiguaji
    这是反恐行动永久性的挂机软件~只推荐在经典木乃伊上使用按下H 会出现声音就是了 如果要结束就按 END(this is mission against terror china afk software !! nice to use)
    2014-02-23 13:41:04下载
    积分:1
  • 1213
    远程木马编程DIY之系统服务13试,适合开发远控软件和木马开发人员。(Remote DIY Trojan programming system services13, suitable for the development of remote control software and Trojan developer.)
    2012-05-14 09:47:18下载
    积分:1
  • VBtohtml
    vb的课程设计,vb代码和html之间的转换(vb of curriculum design, vb code and html conversion between the)
    2006-07-04 20:08:10下载
    积分:1
  • Mi28069-user-manual
    TMS320F28069开发板用户手册, TMS320F28069开发板,用户手册,实验例程 TI DSP开发板用户手册 (The the TMS320F28069 development board User' s Manual, TMS320F28069 development board, the user manual, the experimental routine TI DSP development board user manual)
    2012-10-25 08:20:28下载
    积分:1
  • DataCheckDlg
    用数据库的方式操作excel文件,包括了读取文件的表名,字段名和数据,有详细的注释(Operate with the database excel documents, including a table read from the file name, field names and data have detailed notes)
    2008-03-08 22:51:01下载
    积分:1
  • RfQkjNTYK
    代码是用来实现使用IP地址控件显示和设置IP地址的vc代码,好,有需要的朋友可以看看(Vc code is used to display and set the IP address using the IP address of the control code, need friends can look at)
    2013-01-10 18:07:07下载
    积分:1
  • RegSaver_src
    A GUI that Save or Restore Registry Keys.(Save or Restore Registry Keys.)
    2006-11-27 17:27:56下载
    积分:1
  • VB实例
    说明:  vb编程实例的电子书chm,很多例子看,可以下载来学习学习看看(VB Programming Example)
    2020-03-17 22:36:58下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载