程序存储问题:设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是Li ,1≤i≤n 程序存储问题要求确定这n 个程序在磁带上的一个存储方案,使得能够在磁带上存储尽可能多的程序。 编程任务: 对于给定的n个程序存放在磁带上的长度,编程计算磁带上最多可以存储的程序数。 数据输入:由文件input.txt给出输入数据。第一行是正整数n,表示文件个数。接下来的1 行中,有n 个正整数,表示程序存放在磁带上的长度。 结果输出: input.txt output.txt 6 50 5 2 3 13 8 80 20
上传时间: 2013-12-20
上传用户:dongqiangqiang
对于具有一定规模的TSP问题的求解,至今没有较完善的求解办法。本程序是用遗传算法来求解TSP问题。
上传时间: 2015-03-16
上传用户:pinksun9
/*数字三角形问题 问题描述: 给定一个由n行数字组成的数字三角形如下图所示。试设计一个算法,计算出从三角形的顶至底的一条路径,使该路径经过的数字总和最大。 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 编程任务: 对于给定的由n行数字组成的数字三角形,编程计算从三角形的顶至底的路径经过的数字和的最大值
上传时间: 2013-12-16
上传用户:ccclll
/*最大k乘积问题 问题描述: 设I是一个n位十进制整数。如果将I划分为k段,则可得到k个整数。这k个整数的乘积称为I的一个k乘积 。 试设计一个算法,对于给定的I和k,求出I的最大k乘积(n<=10)。 示例:输入为 : 4 3 结果:1234 */
上传时间: 2013-12-14
上传用户:caixiaoxu26
*Cube:最大子长方体问题 问题描述: 一个长,宽,高分别为m,n,p的长方体被分割成个m*n*p个小立方体。每个小立方体内有一个整数。 求所给长方体的最大子长方体。子长方体的大小由它所含所有整数之和确定。 */
标签: Cube
上传时间: 2013-12-23
上传用户:hxy200501
本程序是使用一种遗传算法解决m个工件分配给m架机床的效益最优化问题,
上传时间: 2015-03-16
上传用户:weiwolkt
JAVA数据结构与算法之梵塔问题 小应用后程序实现
上传时间: 2013-12-25
上传用户:徐孺
图论中使用分支与界法求解旅行商问题,直接在vc中编译可运行
上传时间: 2014-01-01
上传用户:tianyi223
采用的是康力山等人确定的实验参数。 对于n个城市的旅行商问题,其参数如下: 初始温度:t0=280, 每一个温度下采用固定的迭代次数L=100n, 温度的衰减系数alpha=0.92 算法停止的准则是当相邻两个温度得到的解变化很小时算法停止。
上传时间: 2013-12-16
上传用户:xhz1993
HR01招聘需求申报表.doc HR02应聘人员登记审批表.doc HR03面试评价记录表.doc HR05报到通知书.doc HR06离职审批交接单.doc HR07担保书.doc HR08入职手续清单.doc HR10转正评估审批表.doc 《公司员工考勤管理规定》补充规定.doc 《行为考核表》.doc 人事制度.doc 公司工作制度.doc 内部讨论流程.doc 办2003-001培训管理制度(试行).doc 工作制度.doc.doc 工作考核制度.doc 有限公司考勤管理规定.doc 财002出差申请表OpCo.doc 财003广告客户佣金记录单OpCo.doc 财004常用备用金申请单OpCo.doc 资001个人办公PC登记表OpCo.doc 资002办公设备(物资)申请表OpCo.doc 资003固定资产报废申请单OpCo.doc 资004固定资产变动表OpCo.doc
上传时间: 2013-12-17
上传用户:hongmo