-
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
-
Lab1
image processing matlab
- 2015-04-16 22:10:06下载
- 积分:1
-
MTI-simulation
MTI仿真,单延迟对消器频响图,单延迟对消器频响图,单延迟对消器频响图(MTI simulation,function [resp] = single_canceler (fofr1) )
- 2013-05-27 22:15:29下载
- 积分:1
-
Electromagnetic-Field-2D
ANSYS电磁场分析指南,有关2D的分析。(ANSYS electromagnetic field analysis guidelines for the 2D analysis.)
- 2013-07-31 15:48:01下载
- 积分:1
-
OFDM_Serial_Filtering
Basic narrowband system based on OFDM modulation, including filtering to reduce ACI
- 2014-08-21 16:15:59下载
- 积分:1
-
matlab-of-interferogram
用matlab去模拟仿真物理光学的一个文献,挺不错的(Using matlab to simulate a physical optics simulation literature, very good)
- 2011-10-25 09:23:40下载
- 积分:1
-
LU-factorization
实现矩阵的LU最大主元分解,方便快捷有效,可以查看分解过程,适合初学者(Achieve maximum principal component matrix LU decomposition, convenient and effective, you can view the decomposition process, suitable for beginners)
- 2014-11-30 11:09:57下载
- 积分:1
-
cordic_sqrt_atan
利用cordic实现开方和atan运算的matlab源码。
本人原创,标准cordic算法。(calculate aquare root and atan by cordic.
Matlab m language.)
- 2009-12-25 14:38:08下载
- 积分:1
-
matlabofdmfz
一个用matlab编写ofdm仿真程序,读者可以随意调整相应参数(a ofdm prepared using Matlab simulation program, readers can arbitrarily adjust the parameters)
- 2007-05-09 14:16:49下载
- 积分:1
-
Cap04_Introduction-to-Multipath
This file is the programs of (chapter 4) of book (Modeling the Wireless Propagation Channel a Simulation Approach with MATLAB) which is related to introduction to multipath. It helps you to simulate multipath wireless channel.
- 2013-10-15 23:07:00下载
- 积分:1