文件名称:minrobot_huisu
- 所属分类:
- 数学计算/工程计算
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 930kb
- 下载次数:
- 0次
- 提 供 者:
- l*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
问题描述:设某一机器由n个部件组成,每一种部件都可以从m个不同的供应商处购得。设wij是从供应商j处购得的部件i的重量,cij是相应的价格。试设计一个算法,给出总价格不超过c的最小重量机器设计。
数据输入:由文件1.txt给出输入数据。第一行有3个正整数n,m,d。接下来的2n行,每行n个数。前n行是c,后n行是w.
结果输出:将计算的最小重量及每个部件的供应商输出到文件2.txt.
-Problem Descr iption: Let a machine composed by the n-components, each component can be different from m suppliers purchased. Set wij is purchased from suppliers of parts i j Department of weight, cij is the corresponding price. Trial design an algorithm, given the total price no more than c of the minimum weight design of the machine. Data input: the input data given by the file 1.txt. The first line has three positive integers n, m, d. The next 2n rows, n the number of each line. Before the line is n c, n, after the output line is w. The results: the calculation of the minimum weight and supplier of each component output to a file 2.txt.
数据输入:由文件1.txt给出输入数据。第一行有3个正整数n,m,d。接下来的2n行,每行n个数。前n行是c,后n行是w.
结果输出:将计算的最小重量及每个部件的供应商输出到文件2.txt.
-Problem Descr iption: Let a machine composed by the n-components, each component can be different from m suppliers purchased. Set wij is purchased from suppliers of parts i j Department of weight, cij is the corresponding price. Trial design an algorithm, given the total price no more than c of the minimum weight design of the machine. Data input: the input data given by the file 1.txt. The first line has three positive integers n, m, d. The next 2n rows, n the number of each line. Before the line is n c, n, after the output line is w. The results: the calculation of the minimum weight and supplier of each component output to a file 2.txt.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
minrobot_huisu\1.txt
..............\main.cpp
..............\minrobot_huisu.dsp
..............\minrobot_huisu.dsw
..............\minrobot_huisu.ncb
..............\minrobot_huisu.opt
..............\问题描述.doc
..............\Debug\main.obj
..............\.....\minrobot_huisu.exe
..............\.....\minrobot_huisu.ilk
..............\.....\minrobot_huisu.pch
..............\.....\minrobot_huisu.pdb
..............\.....\vc60.idb
..............\.....\vc60.pdb
..............\2.txt
..............\minrobot_huisu.plg
..............\Debug
minrobot_huisu
..............\main.cpp
..............\minrobot_huisu.dsp
..............\minrobot_huisu.dsw
..............\minrobot_huisu.ncb
..............\minrobot_huisu.opt
..............\问题描述.doc
..............\Debug\main.obj
..............\.....\minrobot_huisu.exe
..............\.....\minrobot_huisu.ilk
..............\.....\minrobot_huisu.pch
..............\.....\minrobot_huisu.pdb
..............\.....\vc60.idb
..............\.....\vc60.pdb
..............\2.txt
..............\minrobot_huisu.plg
..............\Debug
minrobot_huisu