-
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
-
SpectrumData
This program can generate a pulse from a given spectrum
- 2011-05-21 08:21:45下载
- 积分:1
-
用于分类的相关向量机(RVM)算法
用于分类的相关向量机(RVM)算法,可以实现很好的分类。(RVM algorithm can be good for classification. )
- 2021-04-12 20:08:57下载
- 积分:1
-
image-pr
文件包含了一个关于水果识别的例子包括图像识别处理对模式识别的学习很有帮助(File contains an example about fruit recognition including image recognition processing study is very helpful to pattern recognition)
- 2014-11-02 13:25:09下载
- 积分:1
-
Hu
说明: 图像特征提取,计算图像的7个Hu不变矩特征,matlab例程(Seven Hu invariant moments features of images)
- 2019-05-15 19:43:18下载
- 积分:1
-
beatratecalculation
helps to detect ECG QRS wave source and calculates beat rate using wavelets and can be used to achieve accurate detection of QRS waveform
- 2010-08-23 10:00:34下载
- 积分:1
-
femto
说明: 一种提高室内覆盖 的 解决方案 就 是所谓的 FAPs ( femtocell 接入点 ) 或家庭
基站 。 这些都是 为 室内使用 而设计的 低功耗 基站 , 这就 使蜂窝网络运营商 可以 扩大室内覆盖的 范围,比如一些受限或 不可用 的地方 。(A way to improve indoor coverage solution is called FAPs (femtocell access point) or home base stations. These are designed for indoor use of low-power base stations, which enables cellular network operators can expand the scope of indoor coverage, such as some areas limited or unavailable.
)
- 2011-03-28 20:47:46下载
- 积分:1
-
The-answer-for-the-first-of-2013B
数学建模2013B—第一题答案,自己编写,不狗血,带原题文件(Mathematical modeling of 2013 b- the first answers, write your own, not the dog blood, with the original file.
)
- 2014-08-19 09:28:50下载
- 积分:1
-
ieee-14-bus-model
AN ANN BASED APPROACH FOR
OPTIMAL PLACEMENT OF
DSTATCOM FOR VOLTAGE SAG
MITIGATION(Voltage sag has been considered as one of the most harmful power quality problem as it may significantly
affect industrial production. This paper presents an Artificial Neural Network (ANN) based approach for
optimal placement of Distribution Static Compensator (DSTATCOM) to mitigate voltage sag under
faults. Voltage sag under different type of short circuits has been estimated using MATLAB/SIMULINK
software. Optimal location of DSTATCOM has been obtained using a feed forward neural network
trained by post-fault voltage magnitude of three phases at different buses. Case studies have been
performed on IEEE 14-bus system and effectiveness of proposed approach of DSTATCOM placement
has been established)
- 2014-11-13 19:56:06下载
- 积分:1
-
xinghaofengxi
数字信号处理-理论、算法与实现 一书中所涉及到的绝大部分算法。
Dsp_c C语言编写的算法程序。
Dsp_fortran FORTRAN语言编写的算法程序。
Dsp_matlab用MATLAB编写的信号处理程序,包含本书各个章节的
大部分例题。(" Digital Signal Processing- Theory, Algorithm and Implementation of a book related to most of the algorithm. The DSP_C C language algorithm. Dsp_fortran FORTRAN language written algorithm. Dsp_matlab prepared using MATLAB signal processing procedures, including most of the examples of the various chapters of the book.)
- 2013-04-24 21:13:43下载
- 积分:1