-
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
-
zhouqitu
用MATLAB仿真现代谱估计中的周期图算法(Simulation with MATLAB in the periodogram spectral estimation algorithm)
- 2011-06-25 13:10:43下载
- 积分:1
-
Matlabbcsl
matlab编程实例,合适初学者学习,参考,编程,仿真,很有价值的(matlab programming examples, suitable for beginners to learn, reference, programming, simulation, great value)
- 2008-02-14 17:55:33下载
- 积分:1
-
mode_daliju_dip0728
说明: 这是一个用simulink作的三环PID的仿真图,相信对作PID控制的人有用(This is a three-ring for use simulink simulation PID map, believe that for PID control of useful)
- 2008-11-08 23:51:39下载
- 积分:1
-
Modern-signal-processing
说明: 现代信号处理教程(胡广书)的 WORD电子版一本电子信息专业研究生教程。很好的教材(Modern signal processing tutorial (Guang-Shu Hu) in WORD electronic version of an electronic information postgraduate tutorial. Good teaching)
- 2010-04-24 17:18:07下载
- 积分:1
-
wnr
wiener median average算法(wiener median average matlab code)
- 2012-12-31 22:20:38下载
- 积分:1
-
01003415
Direct torque control based neural netwoek
- 2010-12-16 20:27:46下载
- 积分:1
-
multi_DMC_refernce
一个双输入双输出的DMC动态矩阵控制的matlab程序,不使用工具箱(A dual-input dual-output DMC dynamic matrix control matlab program without using a toolbox)
- 2018-11-19 15:54:19下载
- 积分:1
-
matlab
in this folder we simulate the system of lorenz, vanderpol
- 2012-03-30 01:34:09下载
- 积分:1
-
PAPER3
Local correlation-based fingerprint matching
- 2011-12-18 12:08:30下载
- 积分:1