-
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
-
wind-power-generation-system
超导磁储能系统抑制风力发电功率波动的研究(Research on the applica tion of superconducting magnetic energy
storage un it to damp wind genera tion power fluctua ting)
- 2014-01-12 12:15:10下载
- 积分:1
-
communicationmatlab
通信系统仿真与Matlab应用,第二版,完整Matlab源代码(Conduct anti信Services department suddenly Ling与using Matlab crown, old woman版Um, finished entire Matlab Daitou Tungsten measurements)
- 2007-07-30 10:27:10下载
- 积分:1
-
OFDM_transmitter
OFDM transmitter, including signal mapping for M-QAM and quantizer
- 2009-05-01 22:27:41下载
- 积分:1
-
ClassificadorNN.m
ClassificadorNN for traffic signals
- 2013-03-11 08:03:58下载
- 积分:1
-
cpmpapr4
This is PAPR for CPM-SC-FDMA
- 2014-02-11 13:26:11下载
- 积分:1
-
xt_mac
Kernel module to match MAC address parameters.
- 2015-04-19 09:28:45下载
- 积分:1
-
MFCBandFilter
一个用MFC写的滤波器源代码,代码结构非常精巧,可以参考
功能:1 固定带通滤波
2 可变带通滤波
3 噪声删除
4 输入输出误差计算
实现比较简单,由于使用了Microsoft Foundation classes,代码流程很简单,但是实现的功能比较充分
Filter.h:头文件,定义了CFilterApp 类
Filter.cpp:利用MFC的函数实现了CFilterApp
Filter.rc:资源文件,包括对话框和图标的说明(use a filter to write MFC source code, code structure is very delicate, can be functional : a fixed band-pass filtering two variable bandpass filter to delete four 3 noise input and output error calculation is relatively simple to achieve. As the use of Microsoft Foundation classes, code process is simple, but to achieve the more fully functional Filter.h : The first document, CFilterApp definition of the category Filter.cpp : MFC function realized CFilterApp Filter.rc : resource files, including dialog box and the note icon)
- 2006-12-04 17:13:56下载
- 积分:1
-
EKF-matlab-simulation
扩展卡尔曼滤波程序,matlab 仿真。(EKF simulation)
- 2013-09-28 15:33:43下载
- 积分:1
-
fft
this algorithm describes how to take fast fourier transform in matlab
- 2010-06-23 21:12:49下载
- 积分:1