登录
首页 » Visual C++ » zoj1094

zoj1094

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

  • OutPut1
    第4章 基本输入处理OutPut1OutPut1.rar,很不错的vc源码,希望能对大家有所帮助(Chapter 4, the basic input processing OutPut1 OutPut1.rar, very good vc source code, I hope you can help)
    2011-09-11 22:59:30下载
    积分:1
  • VC-Detailed-Explanation
    这本书从实际应用入手,由浅入深、循序渐进地讲述Windows程序内部运行机制、MFC框架、文本、菜单、对话框、文件操作、网络编程、进程间通信、ActiveX控件、动态链接库、HOOK编程等多个主题(This book starts from the practical application , deep within the program step by step explanation of the Windows operating mechanism, MFC framework, text, menus, dialog boxes, file operations, inter-network programming, interprocess communication, ActiveX controls, dynamic link libraries, HOOK programming and many other topics.)
    2014-04-25 09:26:40下载
    积分:1
  • chat
    聊天程序的源码,对学习socket编程很有帮助。(Chat program source code, useful for learning socket programming.)
    2009-12-24 01:35:44下载
    积分:1
  • SCCSMO
    VC++串口监视软件,界面漂亮功能强大 经编译和测试通过。(Interface pretty strong functions of VC++ Serial Port Monitor software is compiled and tested.)
    2020-12-26 21:09:03下载
    积分:1
  • GroupPlocyConfig
    windows系统组策略操作封装.............(windows grouppolicy operator......................)
    2013-11-13 21:57:02下载
    积分:1
  • multi_thread_udp
    多线程UDP通讯例子( Multi-thread UDP communication example )
    2020-06-26 11:40:01下载
    积分:1
  • win32vcpp-config-20010409
    bochs源代码()(Bochs source code ())
    2004-10-06 12:08:00下载
    积分:1
  • Mysipphonevs2005
    我这段代码是一个名为Youtoo的sipphone工程改编而来。(www.pudn.com 上有) 原工程是在vc 6.0下开发,而我是在vs 2005 把代码重新改写了一边,同时稍微改了一下界面。 我用来测试客户端(ua)的服务器是 Brekeke SIP Server(安装完后可以注册)。 在程序运行前应该在vs2005重新设置lib和头文件的位置。 库放在lib目录下 头文件放在include目录下。(I have this code is a Youtoo adapted from the sipphone works. (Www.pudn.com have) the original project is developed in vc 6.0, while I was in vs 2005 to rewrite the code aside, at the same time slightly changed about the interface. I used to test the client (ua) of the server is Brekeke SIP Server (can be registered after installation). Before the program runs in VS2005 should be re-instated in the lib and header file location. Treasury on the lib directory下头document include directory.)
    2020-07-02 00:40:01下载
    积分:1
  • use-WINIO-read-above2Gmemory-address
    这是一个编程资料,教你如何在windows下访问大于2G内存的空间,并附下载地址。(This is a programming information, teach you how to access the windows larger than 2G of memory space, along with download address.)
    2011-07-14 09:51:27下载
    积分:1
  • Go-ICP_V1.3
    Go ICP for the registration of point couds
    2017-03-06 23:42:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载