-
0
说明: 给定n种物品和一个背包,物品i的重量是Wi,价值是vi,被包容量是C,应该如何选择装入被包的物品,使得装入背包中物品的总价值最大?对于每种物品i,只有两种选择,装入或者不装入.
输入:第一行两个正整数n(物品数)和C(容量)
第二行n个正整数n,表示物品价值
第三行n个正整数n,表示物品重量
输出:第一行表示总价值
第二行n个数(0/1),0表示物品不装入,1表示装入
例如,
输入:
5 10
6 3 5 4 6
2 2 6 5 4
输出
15
1 1 0 0 1
(Species of a given n items and a backpack, the weight of item i is Wi, the value of vi, was packet capacity is C, should be how to choose a package of items to be loaded, the backpack load in the largest total value of goods? For each item i, there are only two options, loaded or not loaded. Input: the first line of the two positive integer n (the number of items) and C (capacity) of the second line of n positive integer n, that the value of the third line of n positive integer n, that the weight of output: the total value of the first line of the second line, said n number of (0/1), 0 that the items do not load, that load 1 for example, enter: 5,106,354,622 6 5 4 output 15 1 1 0 0 1)
- 2009-07-01 23:07:01下载
- 积分:1
-
Matlab
信号去噪的基本步骤:
(1)信号的小波分解;
(2)小波分解高频系数的阈值量化;
(3)信号的小波重构。使用分解的低频系数以及阈值量化后的高频系数进行小波重构。
(The basic steps of signal denoising:( 1) of the wavelet decomposition of signals ( 2) the high frequency coefficients of wavelet decomposition threshold quantization ( 3) the signal wavelet reconstruction. Using the decomposition of the low frequency coefficient and threshold quantization the high-frequency coefficient after wavelet reconstruction.)
- 2011-08-12 18:00:28下载
- 积分:1
-
senial_dientesierra
SEÑ AL DIENTE SIERRA GUI
- 2013-04-26 07:06:49下载
- 积分:1
-
A-simple-synovial-control-instance
一个简单的滑膜控制实例,通过对典型惯性系统的仿真,进一步深化对滑膜控制抖震的了解,经个人验证,程序可用,且仿真效果良好。(A simple synovial control instance, the typical inertial system simulation, further deepen the understanding of the synovial control buffeting by personal verification procedures are available, and the simulation results are good.)
- 2013-05-07 16:22:21下载
- 积分:1
-
Radar
radar通讯系统的matlab仿真程序,非常适合相关通讯行业的工程师仿真参考(radar communications systems matlab simulation program, is ideal for engineers related to the communications industry reference simulation)
- 2007-10-21 14:15:38下载
- 积分:1
-
LiZiqun
这是一个基于粒子群算法来寻找图片上的园的圆心,通过自己设置参数,可以在较短的时间内较为精确的找到一个图所有圆的圆心(It is used to find the location of circles in a complicant map. For this fuction, you can set some paraement yourself and it will return the result in a very short time. )
- 2011-05-07 14:20:00下载
- 积分:1
-
CompressSensing_Application_4Ref
压缩感知技术的三篇应用文献,有关稀疏阵列的MIMO雷达信号处理,医学影像处理等,附两篇国外最近两年的Block CS, Sequential CS文献。(Compressed perception of the three applications of the technology literature, the sparse array MIMO radar signal processing, medical image processing, and attached two foreign recent two-year Block CS, the literature of Sequential CS.)
- 2012-07-23 08:10:41下载
- 积分:1
-
Segmentation
高质量的MATLAB源代码 用于虹膜图像分割(Hough变换)(Quality MATLAB source code for the iris image segmentation (Hough transform))
- 2013-04-29 12:02:54下载
- 积分:1
-
matlab_symblic
matlab符号运算课件,可进行带符号运算(matlab symbolic computing courseware, could carry out symbolic manipulation)
- 2010-09-03 10:15:16下载
- 积分:1
-
test4
实现数字信号的QPSK调制,并绘制频谱图(QPSK modulation of digital signal, and map spectrum)
- 2015-04-13 10:34:51下载
- 积分:1