登录
首页 » Visual C++ » zoj1094

zoj1094

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

  • BounceBallDemo
    新手可以学习的桌面小球,用c语言,在vc下可以运行(Novices can learn desktop pellets, using c language, can run in vc)
    2014-04-13 23:12:11下载
    积分:1
  • Ilib-1.1.8-min
    说明:  IPL库是Intel为了配合其MMX,SSE,SSE2以及将来的VLSW等技术发布的图像处理库 支持1,8,16,位有/无符号,32位有符号,32位浮点类型数据类型。 支持RGB,CMYK,YCACB,YUV,XYZ,色彩空间,支持alpha通道 支持矩形ROI,通道ROI,遮罩 支持分块图像,错误处理,用户定义函数 支持图像数学,几何,滤波,图象统计,色彩空间变换操作。(IPL is the database to accommodate its Intel MMX, SSE, SSE2 and future technologies such as VLSW issued by the image processing support for 1, 8, 16, spaces with/without symbols, and symbols are 32, 32-bit floating-point type data types. Support for RGB, CMYK, YCACB, YUV, XYZ color space, support alpha channel support rectangular ROI, ROI access, support shielding block images, error handling, user-defined functions to support image mathematics, geometry, filtering, image statistics, color space conversion operations .)
    2006-03-09 10:18:14下载
    积分:1
  • ISP_pc_14y1231b
    透過 Socket 擷取影像,並進行 OpenCV MOG2 計算(Capture images through Socket, and OpenCV MOG2 computing)
    2014-12-31 16:51:58下载
    积分:1
  • rtklib_2.4.2_bin
    RTKLIB是日本东京海洋大学开发(Tokyo University of Marine Science and Technology)开发的一个开放源程序包,供标准与精确GNSS全球导航卫星系统应用。RTKLIB包括一个可移植的程序库和几个应用程序(AP)库。 RTKLIB的特点: (1)支持标准的和精确的定位算法:GPS,GLONASS,QZSS准天顶卫星系统,北斗和SBAS (2)支持多种定位模式与GNSS实时和后处理:单点,DGPS / DGNSS,动态的,静态的,移动基线,定点,PPP运动,PPP静态和PPP定点(RTKLIB is an open source package developed by Tokyo University of Marine Science and Technology in Tokyo, Japan, for standard and precise GNSS global navigation satellite system applications. RTKLIB includes a Portable Library and several application library (AP) libraries. The characteristics of RTKLIB: (1) support standard and accurate localization algorithms: GPS, GLONASS, QZSS quasi zenith satellite systems, Beidou and SBAS (2) support a variety of Location mode and GNSS real time and post processing: Single point, DGPS / DGNSS, dynamic, static, moving baseline, fixed point, PPP motion, PPP static and PPP fixed point)
    2017-11-16 13:58:42下载
    积分:1
  • 3Dmesh
    三维图形的切割就是要把三维网格模型进行切割然后以等值线显示切面上的数值。运用适当的三维图形显示技术和可视化C++编成技术来实现的。(Three-dimensional graphics of the cut is to take three-dimensional grid model and then cut the contour values on the display section. Use of appropriate three-dimensional graphics display technology and visualization techniques to compiled C++ implementation.)
    2010-10-16 17:27:19下载
    积分:1
  • C8
    说明:  孙鑫VC++深入详解第八章vc++基于对话框的程序设计(sunxin VC++ shen ru xiang jie chapter8 dialogue program VC++)
    2012-05-15 22:12:54下载
    积分:1
  • PCYT
    这是一个云台控制的软件,我只是实现了上下左右,自动几个功能,为了测试用,不过可以调通。(This is a PTZ control software, I just realized vertical and horizontal, automatic several functions, in order to test, but can be transferred through.)
    2013-08-22 08:44:29下载
    积分:1
  • NIDS
    网络入侵检测系统,各模块完整,可以实现简单的网络入侵检测(Network intrusion detection system, each module is complete, you can achieve a simple network intrusion detection)
    2021-03-29 20:39:10下载
    积分:1
  • yuvtoavi
    Executable file to convert yuv video file to avi video file . text file eas given for further help.
    2014-01-29 15:02:07下载
    积分:1
  • 3464875676
    VB擂台赛作品:3D空间变换源程序,有需要的就下载吧。(VB contest works: the 3 d space transform source program, has the need to download it.)
    2013-08-17 11:56:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载