-
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
-
bilallab321
FILTERING IN FREQUENCY DOMAIN, FFT of Average Filter
- 2010-05-09 04:01:25下载
- 积分:1
-
RCB_array
beamforming,capon,和music三种波达方向定位算法的matlab仿真源代码(the three DOA beamforming, capon, and music positioning algorithm matlab simulation source code)
- 2012-09-17 14:53:45下载
- 积分:1
-
Monte-Carlo-simulation-Matlab-code
在matlab下,利用monte carlo方法模拟光在混浊介质中的传输(In matlab, monte carlo simulation of the transmission of light in turbid media)
- 2012-12-20 18:17:32下载
- 积分:1
-
mordenfinal
Uncompensated System,PHASE LEAD CANCELLATION METHOD for control system and its result comparision
- 2011-11-15 21:32:01下载
- 积分:1
-
MFC-kulei
一本讲解matlab库类的好书 讲解很详细 适合初学者使用(a book for MFC kulei)
- 2011-12-03 10:55:08下载
- 积分:1
-
matlab_rtw
matlab-rtw实验例程matlab-rtw实验例程matlab-rtw实验例程(matlab real time)
- 2011-12-13 23:57:48下载
- 积分:1
-
pcmcode
对单个采样点进行PCM编码的matlab源程序,是A律PCM。(code for A PCM)
- 2009-05-13 23:49:40下载
- 积分:1
-
eigshow
Graphical demonstration of eigenvalues and singular values
- 2010-03-06 17:16:21下载
- 积分:1
-
添加球面镜
使用matlab制作SLM的会聚球面波相位全息图,欢迎大家借鉴(The use of MATLAB to produce SLM phase hologram of convergent spherical wave is welcomed for your reference.)
- 2020-11-03 20:49:52下载
- 积分:1