-
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
-
scaleif
matlab函数scaleif,用于改变度量,详见英文描述( function sim = scaleif(im, newMin, newMax, oldMin, oldMax)
Scales an image such that its lowest value attains newMin and
it highest value attains newMax. OldMin and oldMax are not
necessary but are useful when you don t want to use the true
min or max value.)
- 2020-12-15 17:19:15下载
- 积分:1
-
combin
tow combination or binomial coefficient, factorial and sort function
- 2013-08-03 18:43:35下载
- 积分:1
-
MAIN
this is the fifth file of coding in matlab
- 2011-05-17 02:08:35下载
- 积分:1
-
DSP_MATLAB
关于数字信号处理的matlab程序实现代码,有很多实用的方法,如功率谱估计的算法等等,对学习数字信号处理很有帮助(On digital signal processing matlab program implementation code, there are many practical ways, such as power spectrum estimation algorithms, etc., is helpful in learning digital signal processing)
- 2011-10-03 12:14:04下载
- 积分:1
-
the-finite-element-method
限元法的matlab实例程序,非常详尽,适用于初学者(Examples of application of the finite element method to solve the partial differential equation (program has explained)
)
- 2014-12-09 21:29:16下载
- 积分:1
-
matlab-coder
MATLAB Coder™ generates standalone C and C++ code from MATLAB
®
code. The generated source code is
portable and readable. MATLAB Coder supports a subset of core MATLAB language features, including program
control constructs, functions, and matrix operations. It can generate MEX functions that let you accelerate
computationally intensive portions of MATLAB code and verify the behavior of the generated code.
- 2013-11-11 21:26:17下载
- 积分:1
-
find_maxpoint
信号实时处理,查找实时接收到的信号的幅值最大点并标记(real-time signal processing,max amplitude point)
- 2015-01-08 10:02:43下载
- 积分:1
-
demod_2ask
该程序实现2ask的解调,2ask解调C语言实现(The program 2ask demodulation, 2ask demodulation C language)
- 2013-12-25 19:21:36下载
- 积分:1
-
LSTM
神经网络 matlab 的一个样例;Neural network matlab a sample(Neural network matlab a sample)
- 2017-08-17 00:19:59下载
- 积分:1