-
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
-
AEencryptalgorithm
一个AES加密算法的matlab实现代码,是密码学的又一重要加密算法。(A realization of the AES encryption algorithm matlab code, is another key cryptography encryption algorithm.)
- 2011-11-27 11:32:03下载
- 积分:1
-
code3
精通MATLAB数字图像处理与识别,第三章练习代码(Proficient in MATLAB digital image processing and recognition, the third chapter exercises code)
- 2013-12-05 20:43:56下载
- 积分:1
-
LPC
Linear Prediction Analysis
- 2013-04-30 00:36:23下载
- 积分:1
-
Rician8PSK
8PSK信号调制,基于matlab源代码。并计算误码率(8 PSK modulation signal, based on the matlab source code. And calculate the error rate)
- 2015-04-05 12:47:58下载
- 积分:1
-
Fourier_Series
this code is help you to draw Fourier Series .
with this code you can change some variable and explain what change for education.
- 2009-12-19 10:01:59下载
- 积分:1
-
Buffon_needle_procedures
说明: 蒲丰投针问题的源程序,运用蒙特卡罗的方法来实现,matlab的源程序(Buffon needle problem of the source, using Monte Carlo methods to achieve, matlab s source code)
- 2010-04-22 15:32:40下载
- 积分:1
-
VC-P-P-and-Matlab-mixed-programming
实现VC++与Matlab的混合编程,解决这
个问题, 不仅能更好地发挥Matlab 强大的功能, 还能快速地进行软件开发, 尤其是当软件开发中需要实现复杂的数学算法、图形处理时尤为迫切。(The realization of VC++ and Matlab mixed programming, to solve thisA question, not only can play a better Matlab powerful function, can rapidly in software development, especially when the software development need to realize the complex mathematical algorithms, graphics processing is particularly urgent.)
- 2012-04-02 19:48:08下载
- 积分:1
-
Produce-a-variety-of-distribution
1.duishuzhengtai:产生对数正态分布
2.gaussian:产生数据量为n的两个相互独立高斯分布y1、y2
3.junyun:自定义 0-1的均匀分布,n代表数据量,一般要大于1024(蒙特卡罗)
4.ruili:瑞利分布,m是瑞利分布的参数,n代表数据量,n一般要大于1024
5.kaifeng:产生开丰分布,其中m代表开丰分布的自由度,n表示产生的点数量
6.tfenbu:本函数产生自由度为m,数据量为n的t分布。
7.weibuer:a=1时,是指数分布;a=2时,是瑞利分布(1.duishuzhengtai: generating lognormal 2.gaussian: generating a data quantity n of two mutually independent Gaussian distribution Y1, Y2 3.junyun: custom uniform distribution of 0-1, n represents a data amount, generally large in 1024 (Monte Carlo) 4.ruili: Rayleigh distribution, m is a parameter of the Rayleigh distribution, n representative of the amount of data, n is generally greater than 1024 5.kaifeng: generating open abundance distribution, wherein m represents an open-abundance distribution freedom of degrees of freedom, n is the number of points generated 6.tfenbu: This function generates m, the amount of data for n t distribution. 7.weibuer: a = 1, the exponential distribution a = 2, is a Rayleigh distribution)
- 2012-09-04 20:02:08下载
- 积分:1
-
piano2
Plays piano music in matlab
- 2015-03-07 23:09:39下载
- 积分:1