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

  • Tally
    一个简单的记账软件,重点在于使用c++与MATLAB混编,使用MATLAB做图,对记账数据进行分析(A simple accounting software, with emphasis on the use of c++ and MATLAB mixed, use MATLAB to do maps, analysis of accounting data)
    2009-02-21 13:05:12下载
    积分:1
  • 微软语音合成演示DEMO
    本软件在vs2010平台下实现了语音合成(Text to Speech)功能,实现将输入的文字信息转化为声音信息,同时能够选择系统语音库,调节朗读音量以及播放频率等详细参数,同时提供了编译过的exe测试程序,并可以选择测试文本信息。
    2022-03-02 19:43:02下载
    积分:1
  • 2013131346
    里面有各种查找 顺序查找 二分法 分块查找(Find sub-block difference)
    2014-11-09 13:54:18下载
    积分:1
  • ISAR
    生成rcs数据,通过此段代码进行isar成像(isar imaging)
    2020-11-17 12:59:41下载
    积分:1
  • Dc-generator-speed
    直流发电机的调速程序,使用的是STC12C5A的单片机,采用PWM技术来调节他的速度,简单便捷。(DC generator speed control program use is microcontroller of STC12C5A, and PWM technology to adjust his speed, simple and convenient.)
    2012-08-03 22:04:35下载
    积分:1
  • MediaPlayersourcecode
    媒体播放器(VC6.0 + source code)(Media Player (VC6.0+ source code))
    2009-12-30 09:00:51下载
    积分:1
  • gui3
    GUI的使用实例,可以更好地学习!可以参照程序来做(Instance of the GUI to use, you can learn better! Can refer to the program to do )
    2012-02-11 20:25:59下载
    积分:1
  • PhysicalGravity
    物理模拟小球重力加速度演示,不同物质加速度不同,下落状态也不同(PhysicalGravity)
    2009-09-14 18:01:56下载
    积分:1
  • Vg101_lecture_of_UM
    matlab 编程基础 C语言入门和C++基础 源自 美国密西根大学(Matlab Programming Fundamentals C language entry and C++ basis from the University of Michigan)
    2012-05-24 19:10:13下载
    积分:1
  • chuanshujuzhen_20101130
    计算随机薄膜厚度的反射率和透射率,利用传输矩阵编写(Random film thickness calculated reflectance and transmittance, written using the transfer matrix)
    2020-09-15 16:37:57下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载