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

  • cifafenxi
    通过设计、编制、调试一个具体的词法分析程序,加深对词法分析原理的理解,并掌握在对程序设计语言源程序进行扫描过程中将其分解为各类单词的词法分析方法。 实验内容及基本要求: 设计一个简单的程序设计语言(语言中有+、-运算,语句有赋值语句、输入语句、输出语句、复合语句) 要求: 1.输入源程序,最后以“#”作结束标志; 2.处理各单词,计算各个单词的值和类型; 3.输出各个单词名、单词的值和类型。 (By design, develop and debug a specific lexical analysis procedures, to deepen understanding of the principles of lexical analysis, and mastery of the programming language source code will be scanned in the decomposition process of lexical analysis of various types of words. Experimental content and basic requirements: the design of a simple programming language (language has+,- arithmetic, assignment statement has input statements, output statements, compound statements) requirements: 1 input source, and finally to " #" as. end marker 2 each word processing, calculating the value and type of each word 3 outputs each word name, value and type of the word.)
    2021-04-28 08:28:43下载
    积分:1
  • vc_can2rs232
    Very Useful Visual C++ source code.
    2016-12-06 13:30:57下载
    积分:1
  • wxhcalc65
    计算器,可以进行表达试输入,并进行科学计算(is a calculator,you can use it calculator)
    2010-09-01 09:22:03下载
    积分:1
  • 2008-SVALexamples
    用于面波的频散分析和反演的程序。很好用的面波频散曲线提取个反演的程序。(For surface wave dispersion analysis and inversion procedures. Good use of the surface wave dispersion curve inversion procedures were extracted.)
    2011-06-14 19:04:44下载
    积分:1
  • opengl-zoom-rotate-pan
    opengl 3d的旋转、缩放和平移,可以很方面的实现。
    2013-06-17 23:03:49下载
    积分:1
  • MFC-OpenCV
    OpenCV视频教程,目标检测与跟踪,车辆特征识别,人脸识别,字符识别,特征提取, 图像分割,手势识别,计算机视觉视频教程,opencv基础知识 (OpenCV is released under a BSD license and hence it’s free for both academic and commercial use. It has C++, C, Python and Java interfaces )
    2013-08-19 07:19:28下载
    积分:1
  • crosscode
    自己编写的C++小程序,十字算法,用到KD树,能够有效进行点云去噪,压缩数据(I have written a small program C++, cross algorithm used in KD tree, the point cloud can be effectively de-noising, compression of data)
    2021-04-26 17:38:45下载
    积分:1
  • book
    3d游戏开发相关书籍 c++数据结构算法 一个简单的射击游戏(3d game development books c++ data structure algorithms a simple shooting game)
    2015-06-07 20:28:59下载
    积分:1
  • Unity www动态加载AB并且可以版本校验,缓存本地 简单库
    Unity www动态加载AB并且可以版本校验,缓存本地 简单库
    2022-03-20 12:29:10下载
    积分:1
  • minicom
    minicom操作指南,对于学习嵌入式尤其是linux的人来说是很有用的(minicom operation guide for learning embedded Linux in particular who is a very useful)
    2006-10-29 20:44:57下载
    积分:1
  • 696518资源总数
  • 104224会员总数
  • 54今日下载