登录
首页 » Visual C++ » zoj1094

zoj1094

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

  • ghost-2012
    GHOST 2012 原版远控 免杀好做的呢 大家来下吧(GHOST 2012)
    2012-03-06 23:04:22下载
    积分:1
  • B400111@04.18
    当用户单击每个数字按钮时,弹出对应的设置对话框,在此处可以设置用户想启动的程序(或者直接输入文件夹名)以及 文字串. 设定完成后,可以开始或者暂停数字键盘的程序设定功能. 在 KEYMODE 时,当用户按下数字键盘的某个数字键时,程序会模拟用户键盘输入在设置对话框设置的文字串,可以用来 在聊天或者游戏时输入常用的语句,符号等(不建议用户刷屏用),此处可使用 代表回车,既可以一下替用户输入大 段的文字串,打星际的时候可以用它替自己输入类似"show me the money"的密码 在 FUNCMODE 时,当用户按下数字键盘的某个数字键时,程序会启动用户在设置对话框设置的程序,或者打开文件夹,也 可以使用程序预定义的如调节音量,启动浏览器等功能,让没有多媒体键盘的朋友也方便.如果你经常操作多个文件夹, 也可以用这个程序,避免打开多个深的文件夹的麻烦.(When the user clicks on each number button corresponding to the Settings dialog box pops up, here you can set the user wants to start the program (or enter the folder name), and Text string. After setting, can start or pause the program to set the numeric keypad functions. In KEYMODE, when the user presses a number key numeric keypad, the program will simulate user keyboard input in the Settings dialog box to set the text string can be used to Enter the chat or the game commonly used statements, symbols, etc. (refresh is not recommended to use), here you can use n behalf of carriage, both look great for the user input Section of the text string, playing Star when you can use it for their own input like "show me the money" password In FUNCMODE, when the user presses a number key numeric keypad, the program starts the user to set the program in the Settings dialog box, or open the folder, but also You can use the predefined procedure, such as adjust the volume, start the )
    2011-09-03 20:59:07下载
    积分:1
  • 3-2
    获取计算机IP地址。可以试试看。源码用C++实现(C++)
    2009-12-19 10:09:17下载
    积分:1
  • jump
    在VC++环境下,利用OpenGL编写的小球的弹跳~(The bouncing ball ~)
    2009-04-15 08:11:49下载
    积分:1
  • motor2
    ansys motor design 设计无刷直流电机的ansys设计过程,进行有限元仿真的(ansys motor design)
    2012-01-30 08:43:32下载
    积分:1
  • StandardSingle_Point_Positioning
    说明:  程序实现了GPS+BDS双系统双频标准单点定位。(The dual system dual frequency standard single point positioning is realized.)
    2020-12-28 20:16:18下载
    积分:1
  • SS_SYN
    时域量化码字,基于时间间隙和DSP的信道编程(time-domain code word to quantify, because of the time gap and the channel DSP programming)
    2007-05-14 17:25:02下载
    积分:1
  • SpecialStartIOTest
    介绍了驱动开发中有关IO例程的相关知识。(Introduction drive the development of relevant knowledge IO routines.)
    2009-03-10 20:36:42下载
    积分:1
  • MakePwd
    这是一个简单的密码生成程序。可以选择生成包含数字、字母(区分大小写)、特殊符号的密码。(This program can generate rand password.The password include number,letter and additional character!)
    2009-11-27 15:50:04下载
    积分:1
  • Visual-CPP-
    Visual C++ 6.0开发指南,高守传版,虽然只有前6章,但对于入门来说还是很不错的。(Visual C++ 6.0 Developer' s Guide, Gao Chuan version, although only the first six chapters, but entry is still very good.)
    2011-07-02 12:21:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载