登录
首页 » Visual C++ » zoj1094

zoj1094

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

  • ACR122U-Sample-Codes_CPP
    ACR122U Sample Codes_C 读卡机示范代码(ACR122U Sample Codes_C )
    2013-09-04 14:18:54下载
    积分:1
  • LIVST220
    英国铁路调度模拟软件,可以在家里模拟调度火车(British Rail scheduling simulation software, you can train at home to simulate scheduling)
    2009-10-29 21:02:23下载
    积分:1
  • McGraw.Hill.Herb.Schildts
    c++ step by step trainig ebook
    2012-07-03 13:37:13下载
    积分:1
  • getIPaddress
    通过此程序,可以获得本地计算机的IP地址,并以提示框的形式显示出来.(Through this process, access to the local computer' s IP address, and the form of prompt box is displayed.)
    2009-05-07 14:27:16下载
    积分:1
  • QEP-speed-calculator
    QEP采集光编信号进行电机运行速度计算程序模块,可移植(QEP collection compiled signal light motor running speed calculation program modules, portable)
    2014-02-11 09:43:09下载
    积分:1
  • Scribble
    SCRIBBLE 是一个小绘图应用程序,它允许用鼠标绘制徒手画并将图像保存在文件中。(Scribble is a small drawing application that allows freehand drawing with the mouse and the image stored in the file.)
    2008-04-03 10:44:53下载
    积分:1
  • 34658753
    图片反色VB源代码 ,应用程序编程源码,很好的 参考资料。(The picture color VB source code , application programming source code, a good reference.)
    2013-11-06 08:57:19下载
    积分:1
  • CJ60lib
    说明:  经典的CJ60界面库,适用于VC++,MFC界面开发(CJ60 Interface development lib)
    2021-02-25 15:19:38下载
    积分:1
  • rtsp_for_VC
    很好的RTSP实现,分享给大家使用,已经建有VC工程(Good RTSP implementation, we used to share)
    2010-12-23 17:17:47下载
    积分:1
  • Julei
    基于MFC框架实现了C均值聚类算法,感知器训练。(Based on the MFC framework implements the c-means clustering algorithm, perceptron training.)
    2014-12-17 12:44:59下载
    积分:1
  • 696516资源总数
  • 106637会员总数
  • 8今日下载