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

  • 3DHelperDemo
    一个基于mfc对话框和OPenGL的三维模型显示框架(A frame which use mfc dialog OPenGL)
    2010-05-10 10:09:43下载
    积分:1
  • Date
    用整数存储私有成员:年、月和日。为类提供构造函数,能够对各成员进行初始 化,但出现错误的初值时, 成员为2000-1-。也可以不在不提供任何初值的情况 下日期为2000-1-1。另外可以用一个Date 对象进行初始化,成员函数应实现以 下功能: (1) 对所有成员一次性赋值,也能对某个成员单独赋值,能够一次返回所有成 员的值,也能单独返回某个成员的值 (2) 可以按照mm-dd-yyyy 格式输出日期。 (3) 有成员函数nextDay(),用于将日期增加一天(Integer stored the private Members: year, month, and day. Class provides a constructor to initialize the members, but the wrong initial value, members 2000-1-. The date can also be not the case does not provide any initial value 2000-1-1. Also available on a Date object is initialized, the member function should achieve the following functions: (1) all members of the one-time assignment, can also be a member of a separate assignment, to return once the value of all the members, but also separate return a The members of the value (2) according to the date of mm-dd-yyyy format output. (3) member function nextDay () for additional day date)
    2012-11-22 11:18:18下载
    积分:1
  • ex6
    如何开发OPENGL程序的基本方法之五,如何加入二维纹理的多边形.(OPENGL procedures how to develop the five basic methods, how to join the two-dimensional texture of the polygon.)
    2007-07-15 21:33:25下载
    积分:1
  • icalab-toolbox
    icalab tolbox--ICALABSPv2_2
    2011-04-18 09:15:00下载
    积分:1
  • LQmma7455C52
    单片机内刻录程序,包含C语言和汇编语言两个版本。实现7455C5与单片机的串口通信,信息传输。(Microcontroller burning program, contains two versions of the C and assembly language. 7455C5 microcontroller serial communication, information transfer.)
    2013-01-31 16:38:03下载
    积分:1
  • ErrorLook
    通过系统返回的错误代码,你可以查看错误代码和系统的版本信息。帮助自己改写错误(Use the Soft you can Look Error Code and look the system Version,so you can clean to know the error you made ,to help you change you mistake.)
    2012-09-10 23:34:58下载
    积分:1
  • Hai2u
    HAI2U, a maplestory bot coded in win32 c++ visual studio. It contains botting functions, kami and etc
    2013-05-20 18:27:11下载
    积分:1
  • TestView
    说明:  单文档绘图测试程序。单文档绘图测试程序。(single document mapping test. Single document mapping test.)
    2006-04-30 10:42:33下载
    积分:1
  • Print1ToMaxOfNDigits
    输入一个十进制数字,打印出其二进制所包含的1的个数,空间复杂度很小(Enter a decimal number, print out its binary contains a number, a very small space complexity)
    2013-09-04 19:15:43下载
    积分:1
  • Lesson01
    NEHE opengl 中第一课的源代码(NEHE opengl source code in the first lesson)
    2015-10-28 10:59:47下载
    积分:1
  • 696518资源总数
  • 104326会员总数
  • 25今日下载