(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 157
下载积分: 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 个回复

  • SevLaunch
    自制的一个快捷启动工具,简介好用。功能可以继续完善(Made a quick start tool, Introduction handy.)
    2013-11-28 14:43:44下载
    积分:1
  • Access-Template
    REV Journal on Electronics and Communications (REV-JEC) is a quarterly peer-reviewed research journal, dedicated to providing a leading edge forum for researchers and professionals to contribute and disseminate innovative research ideas and results in the fields of electronics and communications.
    2018-08-07 20:25:16下载
    积分:1
  • ftpclient_demo
    实现网络文件传输的一个简单例子,通过它你可以在文件服务器上下载文件。FTP协议编程(A simple example of network file transfer, through which you can download the file on a file server. FTP protocol programming)
    2012-02-10 16:13:16下载
    积分:1
  • RBtree
    使用C++/C语言实现的红黑树,对于数据结构的学习有所帮助。(Use red-black tree C++/C language for learning data structures helpful.)
    2014-05-16 16:09:57下载
    积分:1
  • csaolei
    C language is currently the more popular high-level computer programming language, because of its simplicity, ease of use and powerful features have been widely favored by programmers. It is suitable as a system description language, can also be used to prepare the system software, application software can be written since
    2014-01-17 15:11:15下载
    积分:1
  • ren
    用matlab的simulink实现状态观测器设计及仿真,绘出state-space 模块的输出值的阶跃响应曲线以及观测器的输出值的阶跃响应曲线。(To achieve observer status with the design and simulation of matlab simulink, step response curve step response curve and observing the output value is plotted state-space module output value.)
    2020-11-11 20:59:44下载
    积分:1
  • shiyan2
    通信网实验报告 用MATLAB实现话务量的计算(Communication network traffic using MATLAB realize the calculation)
    2013-07-25 19:49:04下载
    积分:1
  • DlgIniTest
    由于现代软件中,很多时候需要保留一些配置信息,而ini文件就是其中的方法之一,该工程简单而详细体现了ini文件的读写调用方式(Because of modern software, often need to retain some configuration information, and the ini file is one of the ways that the project reflects the simple and detailed invocation ini file read and write)
    2013-11-03 15:52:15下载
    积分:1
  • stereo
    立体视觉代码。主要过程包括:harris角点检测,zncc最优策略匹配,扩散得到更多特征对应,计算disparity和对应颜色值。另外提供了两幅图片以及对应的特征匹配的结果和disparity图像。(Three-dimensional visual codes. The main process includes: harris corner detection, zncc optimal strategy for matching, the proliferation of more features of the corresponding calculation of disparity and the corresponding color value. Also provides a picture and two corresponding feature matching results and disparity images.)
    2020-06-29 14:40:02下载
    积分:1
  • book423
    GIS尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码。(gis liucheng duoduo liucheng duoduo)
    2009-04-23 12:47:12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载