-
Question1
说明: C++源代码,递归实现。原问题描述:鼓上蚤时迁到一个山洞里去盗宝,里面有n件宝贝,价值分别是a1,a2......an,并且满足ai大于a1+a2+....+a(i-1)的和。他身上有一个背包,能装的东西最大价值是K,他只能进洞一次,请问他最多能带出多少?
要求:输入K,n,a1,a2......an
输出:他能最多带出的宝物价值
(C++ Source code Recursive achieve. The original problem description: drum when flea盗宝going to move in a cave, there are n pieces of treasure, valued are a1, a2 ...... an, and to meet ai than a1+ A22B !....+ a (i-1) and. Him to have a backpack, things can hold the greatest value is K, he could only hole once, to ask him to bring out the maximum number of? Requirements: Enter K, n, a1, a2 ...... an output: he can bring out the maximum value of the treasures)
- 2008-12-02 21:07:25下载
- 积分:1
-
SeisLab_2.01
用于处理地震数据的一系列操作代码,包含对地震书籍的处理和对井资料的处理,非常适合勘探地震学初学者学习。里面附有英文使用说明(Code for seismic data processing a series of operations, including handling and processing of seismic well data books, is very suitable for beginners to learn exploration seismology.)
- 2015-02-17 11:08:48下载
- 积分:1
-
erosion_block
这是基于MATLAB的偏微分方程的腐蚀算子!(This is based on the partial differential equations MATLAB corrosion operator!)
- 2009-01-10 18:55:57下载
- 积分:1
-
qq
说明: Matlab for serial interface
- 2010-07-06 01:07:26下载
- 积分:1
-
ARMA_MYW
AMRA 模型 修改的Yule_walker方法( modified Yule_walker method for AMRA )
- 2013-02-27 17:14:02下载
- 积分:1
-
TheFilterDesign
使用matlab编写的图像滤波器,带gui(Written in the image filter using matlab with gui)
- 2011-10-23 10:07:14下载
- 积分:1
-
ProficientinMatlabscientificcalculations
说明: 这些源码为电子工业出版社出版的精通MATLAB科学计算里面的多有源代码,很适合初学者(The source for the electronic industry press the master of science in MATLAB calculation is more suitable for beginners.)
- 2010-04-21 09:46:16下载
- 积分:1
-
PCA-based-matlab
基于PCA算法的人脸识别,使用ORL人脸数据库做实验,识别率为88 (PCA algorithm-based face recognition using ORL face database experiment, the recognition rate of 88 )
- 2012-06-01 22:21:04下载
- 积分:1
-
common-function
二进制调制解调系统 仿真程序中的常用函数(common function)
- 2011-08-19 16:27:18下载
- 积分:1
-
syntraces
地震合成记录制作的基于matlab的远吗(syntrace )
- 2012-02-07 11:43:52下载
- 积分:1