-
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
-
gquad
自己编的最新的gquad方法,非常的好用(Own series the latest gquad method, very easy to use)
- 2011-09-26 13:02:18下载
- 积分:1
-
OFDM
document for basic learning of OFDM concepts.
- 2014-02-26 05:00:45下载
- 积分:1
-
ga
该程序用BASE-10遗传算法模拟简单函数的优化。首先,我们概述了遗传算法的一些背景信息,并定义了一些术语。接下来,我们将解释如何将该程序用于您自己的目的,并作为一个示例演示如何解决优化问题。(This program simulates the optimzation of a simple function with
a base-10 genetic algorithm. First, we outline some background
information on GAs and define some terminology. Following this,
we explain how to use the program for your own purposes and as an
example we show how to solve an optimization problem.)
- 2019-06-03 09:38:40下载
- 积分:1
-
rls
RLS predictive 1d matlab code
- 2010-07-21 01:41:22下载
- 积分:1
-
texture1
本人编写的用直方图提取纹理特征的源码,希望对大家有用(I am prepared to use the histogram of the source texture feature extraction, in the hope that useful)
- 2007-11-28 10:57:53下载
- 积分:1
-
GM
最基础的灰色预测的matlab源程序,可以直接运行(Grey prediction program by matlab)
- 2013-07-17 10:41:50下载
- 积分:1
-
digital-signal-classification
ASK、PSK和FSK信号的盲识别仿真,仿真产生各类信号,分别可进行大类间的识别和类内识别,统计识别准确率。(Blind Identification ASK, PSK and FSK signal,simulation produces all kinds of signals, and can be identified in the identification between class categories, statistical recognition accuracy.)
- 2015-03-03 18:46:49下载
- 积分:1
-
msx60
solar pv array model of msx60
- 2013-12-08 19:14:17下载
- 积分:1
-
FullBNT-1.0.4
matlab中的贝叶斯网络工具箱,版本为1.0.4。(Bayesian network toolbox in matlab, version 1.0.4.)
- 2011-10-12 01:35:45下载
- 积分:1