登录
首页 » Java » Soct

Soct

于 2012-06-14 发布 文件大小:67KB
0 235
下载积分: 1 下载次数: 4

代码说明:

   假设有一个能装入总体积为T的背包和n件体积分别为w1 , w2 , … , wn 的物品,能否从n件物品中挑选若干件恰好装满背包,即使w1 +w2 + … + wn=T,要求找出所有满足上述条件的解。例如:当T=10,各件物品的体积{1,8,4,3,5,2}时,可找到下列4组解:(1,4,3,2),(1,4,5),(8,2),(3,5,2)。 [需求分析](Suppose there are a load of the backpack of the total volume of T and n volumes were w1, w2, ... wn items, whether selected from n items a number of exactly filled backpack, even if w1+w2+ ...+ wn = T, find out the solution of all the above conditions are met. For example: when T = 10, the volume of items {1,8,4,3,5,2}, can be found in the following four solutions: (1,4,3,2), (1,4,5 ), (8,2), (3,5,2). [Needs Analysis])

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

发表评论

0 个回复

  • Least-squaresmethod
    基于最小二乘法的冗余信息数据融合算法实现(Least-squares method based on redundant information and data fusion algorithm)
    2009-11-05 23:10:11下载
    积分:1
  • MyFloat
    自定义浮点数的软件实现,支持和普通浮点数的互换。(Self-defined float compatible with IEEE 754)
    2019-06-20 10:01:26下载
    积分:1
  • jobshop
    车间调度问题主程序,需要进行自主参数设计(Shop scheduling problem the main program, the need for self-Parameter Design)
    2008-04-07 20:28:10下载
    积分:1
  • 第一章作业
    分别以单精度和双精度数据类型用以下近似算法分别计算π的近似值,要求结果具有4位有效数字(calculate pi with single-precision and double-precision respectively)
    2021-03-17 18:19:21下载
    积分:1
  • sound
    说明:  本程序基于matlab进行了声波在固体中的仿真模拟。(This procedure carried out based on sound waves in matlab in the simulation of solid.)
    2009-08-17 18:12:22下载
    积分:1
  • jisuanqi
    可以进行简单的数学运算:加、减、乘、除,sin(),cos(),tan()等,还可以对数字进行取余和开方的运算。但仅限于十进制下,还可以进行数的正、负之间的相互转换,exit表示退出, clear表示初始化,有一个 TextField用于显示传来的计算结果;Server端用于监听连接请求、计算发送过来的两数的和、送回数据结果。(Can perform simple arithmetic: add, subtract, multiply, divide, sin (), cos (), tan (), etc. can also figure to take over and prescribing arithmetic. But only under the metric system can also be used for a number of positive and negative between the conversion, exit, said exit, clear that the initialization, there is a TextField to display the results from the calculation Server client connection requests for eavesdropping, calculated sent the two and the number of returned data.)
    2009-03-06 20:45:25下载
    积分:1
  • color bar
    主要是交通行业的时空矩阵的3维热力图表达方式,不同检测器与不同时间段的流量作为颜色的第三位导入,热力图调整颜色表达更清晰(mianly used for transportation engineering. It can plot the three dimension of the real traffic situation, including different temporal and spatial. the code also can modify the parameter of the colorbar.)
    2017-09-18 09:55:43下载
    积分:1
  • T-matrix
    T矩阵方法的FORTRAN环境下的程序,希望对大家有帮助!(T matrix method program FORTRAN environment, we want to help!)
    2020-10-21 21:37:23下载
    积分:1
  • Parallel-inverse-solution
    并联机构 正反解 六自由度并联机构空间运动结算 实例分析(DOF parallel mechanism inverse solution space motion parallel mechanism settled case analysis)
    2021-03-20 11:59:18下载
    积分:1
  • fortran_MD
    Fortran编的关于分子动力学模拟的程序(Fortran programs compiled on the molecular dynamics simulations)
    2014-02-26 22:16:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载