登录
首页 » Visual C++ » zoj1094

zoj1094

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

  • 隐藏进
    vc编写的进程隐藏代码(vc compilation advancement hideaway code )
    2020-07-29 16:18:38下载
    积分:1
  • Text_CTreeBT
    一个MFC的属性控件类~~~封装了一些对树形控件的基本操作~~(MFC controls the properties of a type ~ ~ ~ Packaging, some of the basic operation of the control tree ~ ~)
    2009-05-11 09:27:17下载
    积分:1
  • 00163597urg-0.8.18
    雷达数据采集,日本urg-0.8包,采集2D数据,将雷达测出的长度信号转换成图形数据显示,库包里有C库以及c++库。((Radar data acquisition, Japan urg 0.8 package, 2 d data, the radar to measure the length of the signal into graphic data shows that there are C library and the library of C++ library package.))
    2018-03-12 15:52:58下载
    积分:1
  • MScomm
    说明:  为解决实际测控系统中在控制中心的上位机和控制功能设备的下位机之间传送命令和文件的问题,在讨论VC++6.0中MSComm控件的基础上,通过制定通信协议、给命令和文件加入标识构成包进行传送,从而正确地区分了命令和文件.实验表明,基于该通信协议,可以成功地传送命令和多类型文件. (To address the actual measurement and control system in the Control Center PC and control functions of equipment under the digital transmission between orders and documents, in discussing the VC++ 6.0 in MSComm control on the basis of the communication protocol through the development to the orders and adding logo files constitute a packet transmitted, thereby correct distinction between the orders and documents. The experimental results show that based on the communication protocol, you can successfully send a command and multi-type documents.)
    2008-09-07 13:00:04下载
    积分:1
  • AryanRat
    国外著名的远程控制RAT 适合改成自己的专用(Famous for the remote control RAT into its own dedicated)
    2009-07-12 18:58:05下载
    积分:1
  • f734ea186279f380a19d9d3180f963da
    入侵检测系统IDS源码,只能在VC6.0中打开,请自行配置winpcap环境( U5165 u4FB5 u68C0 u6D4B u7CFB u7EDFIDS u6E90 u7801 uFF0C u53EA u80FD u5728VC6.0 u4E2D u6253 u5F00 uFF0C u8BF7 u81EA u884C u914D u7F6Ewinpcap u73AF u5883)
    2021-03-29 20:39:10下载
    积分:1
  • market
    市场薪酬调查分析系统,录入调查岗位、岗位点数、薪酬,自动生成调查表和调查曲线(Market salary survey and analysis system, entry survey post, post points, pay, automatic questionnaires and survey curves)
    2017-05-23 21:44:01下载
    积分:1
  • vcvideo
    VC++仿电影字幕滚动文字特效,使用了VC++自绘技术,其两个核心文件CreditsCtrl.cpp和CreditsCtrl.h已打包。   (VC++ imitation Subtitles scrolling text effects, using a self-drawn VC++, packaged two the core file CreditsCtrl.cpp and CreditsCtrl.h.)
    2012-10-01 01:26:05下载
    积分:1
  • standardSerailPortWin32Interface
    标准串口win32接口函数,通过这些微软提供的串口接口函数可以实现对串口的读写操作(standard serial port debug source code)
    2015-12-12 16:29:20下载
    积分:1
  • Client
    網路上搜尋而來的龍族client源碼..(Maronite client source)
    2013-06-24 20:19:13下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载