-
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
-
6-_-cylinder
Lattice Boltzmann sample in Matlab
Copyright (C) 2006-2008 Jonas Latt
- 2014-09-02 13:08:12下载
- 积分:1
-
selection-combining-diversity
this is the selection diversity technique, used for avoiding the effects of fading.
- 2014-10-27 18:30:11下载
- 积分:1
-
wavelet
通过此程序理解小波变换原理,与傅立叶变换的区别(Understanding of this process through the principle of wavelet transform with the Fourier transform of the difference between)
- 2009-05-06 19:10:19下载
- 积分:1
-
ch10
频率采样法:使所设计的FIR数字滤波器的频率特性在某些离散频率点上的值准确地等于所需滤波器在这些频率点处的值,在其他频率处的特性则有较好的逼近。
(Frequency sampling method:Make the FIR digital filters designed by the frequency characteristic in some discrete frequency is equal to the value accurately in these frequency required filter in value, the characteristics of the other frequency place there is a better approximation.
)
- 2011-05-17 10:51:51下载
- 积分:1
-
grid_connected
三相并网系统,包括锁相环,坐标变换,解耦控制等算法,通过验证(Three-phase grid-connected systems, including phase-locked loop, coordinate transformation, decoupling control algorithm, validated)
- 2021-02-07 10:49:55下载
- 积分:1
-
mVmodel
matlab与C的混编,处理乘性噪声,建立M次开根号模型,需要调整参数。(written with matlab and C by S. Yun and H. Woo, "A new multiplicative denoising variational model based on m-th root transformation".)
- 2013-11-12 22:24:03下载
- 积分:1
-
NaSch_3
作为对184号规则的推广,Nagel和Schreckberg在1992年提出了一个模拟车辆交通的元胞自动机模型,即NaSch模型(也有人称它为NaSch模型)。
(Schreckberg was proposed in 1992 by a simulation of vehicle traffic cellular automaton model, namely the NaSch model (also called it NaSch model))
- 2015-01-19 14:27:50下载
- 积分:1
-
matlab_example
第二版数字信号处理实验指导书的实验的程序(Digital signal processing second edition of the experimental procedure)
- 2010-12-16 20:49:23下载
- 积分:1
-
OFDM_simulator
在matlab中仿真OFDM的源代码:)(OFDM simulation in matlab source code:))
- 2007-08-10 16:18:42下载
- 积分:1