文件名称:package
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 21kb
- 下载次数:
- 0次
- 提 供 者:
- gen****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
此小程序用java实现了可以分割的背包问题,开发平台是Eclipse。其中主要是用贪心算法实现背包问题,在将物品进行排序时,没有使用经典的merge-sort算法,而是直接使用了java中Arrays类的sort的方法,但要自己定义类,实现接口Comparator。-This small program using java realize the knapsack problem can be separated from the development platform is Eclipse. Which is mainly used greedy algorithm knapsack problem, sort the items in when not using the classic merge-sort algorithm, but the direct use of java in the Arrays class sort method, but their definition of class, realize interface Comparator.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
package
.......\dividablepackage
.......\................\.classpath
.......\................\.project
.......\................\divpack
.......\................\.......\Inputpack.class
.......\................\.......\Inputpack.java
.......\................\.......\MyComparator.class
.......\................\.......\MyComparator.java
.......\................\.......\Structure.class
.......\................\.......\Structure.java
.......\dividablepackage
.......\................\.classpath
.......\................\.project
.......\................\divpack
.......\................\.......\Inputpack.class
.......\................\.......\Inputpack.java
.......\................\.......\MyComparator.class
.......\................\.......\MyComparator.java
.......\................\.......\Structure.class
.......\................\.......\Structure.java