登录
首页 » Windows开发 » 给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致...

给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致...

于 2022-09-10 发布 文件大小:45.05 kB
0 149
下载积分: 2 下载次数: 1

代码说明:

给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致。问如何切割使得所使用的矩形板的高度h最小?递归分治,刚才上传的ex1.rar有错,以这个为准.-Given a width W of the rectangular plate, rectangular plate of height restrictions. Is the need to cut out from the board, respectively, n-height hi, a width of the rectangular parts wi. Parts of the rules of cutting height direction and the direction of rectangular plates with a high degree of consistency. Asked how to make the use of cutting rectangular plate of height h the smallest? Recursive sub-rule, has just uploaded ex1.rar wrong, this shall prevail.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • This one a typical one number value issue, is it is it belong to algorithm ask a...
    这是一个典型的非数值问题,如果使用非递归算法求解此问题,要设计复杂的算法,编写很长的程序。而使用递归算法可以使整个算法清晰,使程序简洁。本问题分析并建立递归算法的过程是典型的抽取问题本质、建立递归算法 并最终解决非数值问题递归实例。-This one a typical one number value issue, is it is it belong to algorithm ask and solve this question to pass to use, design the complicated algorithm , will write very long procedure . It can make the whole algorithm clear and use and pass and belong to the algorithm, make the procedure succinct . Case study this is it is it belong to course of algorithm typical extraction issue essence , is it pass algorithm of belonging to to set up to pass to set up And it is not a number value problem to solve finally and pass and belong to the instance
    2022-05-23 18:27:16下载
    积分:1
  • Very stable, easy
    非常稳定好用的串口通讯源代码,经过上千次测试,没有问题-Very stable, easy-to-use serial communication source code, after thousands of tests, there is no problem
    2022-11-20 21:40:03下载
    积分:1
  • string 类很强大得功能
    string 类很强大得功能-a very powerful string-type functions
    2022-03-24 11:15:50下载
    积分:1
  • 计算矩阵乘积,文本输入输出,输入时两个矩阵之间需要换行...
    计算矩阵乘积,文本输入输出,输入时两个矩阵之间需要换行-Calculation of matrix product, text input and output, input two matrices when the line between the need for
    2022-02-02 22:17:29下载
    积分:1
  • 基于qt的打地鼠小游戏
    打地鼠小游戏,,可直接运行,源代码齐全一大群历不明的老鼠入侵你的农场。作为一个奶酪农场的老板,现在是时候站和保卫你的家。现在,只有你可以阻止那些贪婪的老鼠。来测试下你的反应速度够不够快!
    2023-08-16 02:00:07下载
    积分:1
  • 用途:用向量(稀疏存储)形式的Gauss
    用途:用向量(稀疏存储)形式的Gauss-Seidel迭代解线性方程组Ax=b % 格式: x=spgs(A,b,x0,e,N),A为系数矩阵,b为右端向量,x返回解向量。 % x0为初值向量(默认原点),e为精度(默认1e-4),设置迭代次数上限以防发散(默 % 认500)。 -purposes : with Vector (sparse storage) form of Gauss- Seidel iterative solution of linear equations Ax = b% Format : spgs x = (A, b, x0, e, N), A coefficient matrix, b subguadratic vector, returning x vector. X0% for initial vector (the default origin), e-precision (default 1e-4), iteration ceiling set to prevent divergence (mime identified 500%).
    2022-04-14 12:19:24下载
    积分:1
  • 一个基于C++编写的程序,功能是形象的描绘水和火
    一个基于C++编写的程序,功能是形象的描绘水和火-Based on the C++ Preparation procedure, function is to portray the image of water and fire
    2022-08-04 08:54:27下载
    积分:1
  • 剪贴板数据处理类。
    剪贴板数据处理类COleDataSourceEx-the class of clipboard data processing.
    2022-03-05 16:41:45下载
    积分:1
  • 本工具箱主要包含三部分内容 % (支持平台MATLAB5.3或5.2,Symbolic math,optim,spline,stats) % 1. MA...
    本工具箱主要包含三部分内容 % (支持平台MATLAB5.3或5.2,Symbolic math,optim,spline,stats) % 1. MATLAB常用数学建模工具的中文帮助 % 2. 贡献MATLAB数学建模工具(打*号) % 3. 中国大学生数学建模竞赛历年试题MATLAB程序-the toolbox contains three main parts% (supported platforms MATLAB5.3 or 5.2, Symbolic math, optim, spline, stats)% 1. MATLAB Mathematical modeling tools used by the Chinese to help% 2. several contributions MATLAB Xue modeling tools (striking*)% 3. China Mathematical Contest in Modeling historical questions MATLAB
    2022-03-12 20:19:18下载
    积分:1
  • Chinese characters feel Lattice production tools, high
    汉字字摸点阵批量生产工具,大批量生成,简单易用-Chinese characters feel Lattice production tools, high-volume production, easy to use
    2023-06-16 21:10:04下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载