(Containerpackingproblem:givenacontainer,anditslengthL,widthWandheightH,thecurrentbatchofcylindricaltimber,eachtimber*longareL,buttheradiusisdifferentforthefirsti-kantimberradiusri.Askedhowthepacking,makingmebeassembledin*themaximumutilizationofspace?Usegreedyalgorithmtosolve.*CompilerMethods:Opencppfile,compiledatthesametimeintheestablishmentoftheproject,openthesettings-) - IMDN开发者社群-imdn.cn">
登录
首页 » Visual C++ » greedy

greedy

于 2007-10-14 发布 文件大小:62KB
0 163
下载积分: 1 下载次数: 17

代码说明:

  集装箱的装箱问题: *给定一个集装箱,其长为L,宽为W和高为H,现有一批圆柱形木材,每根木材 *的长均为L,但是半径不同,设第i根木材半径为ri。问如何装箱,使得集装 *箱的空间利用率最高?使用贪心算法解决。 *编译方法:打开cpp文件,在编译的同时建立工程,打开 "settings->link" *在link项的Object/library modules:中加入Opengl32.lib glu32.lib glaux.lib(Container packing problem: given a container, and its length L, width W and height H, the current batch of cylindrical timber, each timber* long are L, but the radius is different for the first i-kan timber radius ri. Asked how the packing, making me be assembled in* the maximum utilization of space? Use greedy algorithm to solve.* Compiler Methods: Open cpp file, compiled at the same time in the establishment of the project, open the settings-)

文件列表:

c25.txt
c30.txt
greedy.cpp
greedy.exe
注意事项.txt

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

发表评论

0 个回复

  • 《马昌凤-最优化方法及其Matlab程序设计》
    说明:  全面详细解读MATLAB优化算法,序列二次规划、共轭梯度,拟牛顿法等(Comprehensively and detailedly interpret the optimization algorithm of MATLAB)
    2019-01-09 10:19:57下载
    积分:1
  • smtpcx
    一个简单的托盘程序 可以实现光驱的开关(a simple procedure tray can be achieved by switching drive)
    2007-05-20 22:45:46下载
    积分:1
  • zjtb
    ʱ
    2008-10-02 14:52:17下载
    积分:1
  • ConfigPort
    文件的一些操作,主要功能为配置tomcat的http和HTTPS的端口访问地址(Some operations, the main function of a file is accessed the address http and HTTPS port configuration of the tomcat)
    2015-12-28 15:54:04下载
    积分:1
  • structure-array-code
    根据队列搜索算法的基本思想,现设计了一个简单的结构体数组如下定义代码所示。此结构体数组具备控制结点搜索和存储结点信息和路径的功能,可以较好的实现TDN的最小时间路径搜索。(Search algorithm based on the basic idea of ​ ​ the queue is now designed a simple structure array as defined code. This structure array with the control node and storage node information search and path functions, you can achieve better TDN minimum time path search.)
    2013-10-09 14:35:43下载
    积分:1
  • Opengl-Model-Control
    Opengl 模型控制 Opengl 模型控制 Opengl 模型控制,多格式
    2016-08-24 10:50:44下载
    积分:1
  • viterbi
    matlab仿真中的(2,1,2)卷积码和维特比译码的码源。(matlab simulation (2,1,2) convolutional code and Viterbi decoding of the code source.)
    2012-04-26 13:46:25下载
    积分:1
  • 145
    一个很好类子来说明类模板的使用,可以比较明了类模板的使用方法,最好进行单步调试(use of class template )
    2013-08-30 17:17:58下载
    积分:1
  • data
    mfc数据库编程资料。查询数据,创建数据库,登陆,对话框加菜单,加消息响应等等。(data base on MFC)
    2012-05-04 15:32:58下载
    积分:1
  • polyphase
    这个是多相滤波的MATLAB程序,做接收机的同学可以参考的(this is a polyphase programme)
    2013-11-06 20:01:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载