-
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
-
Mcodes_for_coa
通信系统的Matlab代码,包括括通信原理书中的大多代码可直接使用。
(Matlab code of the communication system, including most of the code including communication theory book can be used directly.)
- 2012-07-26 14:21:16下载
- 积分:1
-
picture
主要使图像进行灰度化处理,matlab的源代码,视同再进一步的预处理中应用(Gray image)
- 2014-01-05 18:07:47下载
- 积分:1
-
Image_denoising_using_wavelet
This a self-contained package including the 2-D DWT and inverse DWT
routines. The included matlab routines are used to generate noisy example
images and disply the result of denoising.
- 2007-10-26 18:54:42下载
- 积分:1
-
lanlan
sample visua basic hoc tap bao cao
- 2014-09-25 23:32:33下载
- 积分:1
-
C_with_Matlab
C++ 与 MATLAB 混合编程的pdf英文课件 实现图像的Median filter(a step by step guide on how to realize image median filtering with integrated C++ and MATLAB ,tutorial only,no sample code available)
- 2009-05-13 21:39:43下载
- 积分:1
-
junzhilvbonmd
MATLAB对数字信号进行均值滤波,尤其是对数字图像(MATLAB for digital signals mean filter, especially for digital images)
- 2014-02-22 18:43:06下载
- 积分:1
-
vcPPsourcecode7
说明: 600个大型项目源码之一:
MATLAB与VC++混合编程实现一维小波多尺度分解
小波分析世纪80年代开始发展成熟起来的一个数学分支,其应用领域十分广泛,并逐步成为信号分析的又一有力工具。MATLAB的小波工具箱为我们提供了小波多尺度分解函数,方便了我们对小波的使用。但是用它所编写的软件不能脱离MATLAB编程环境在Windows平台下直接运行,代码执行效率低下,运行时占较多的系统资源,不能达到某些用户的需求。
VC++是由美国Microsoft 公司开发的可视化C/C++集成编程环境,是目前功能最强大的软件开发工具之一。被广泛应用于Win32平台的基础应用程序的开发。 它具有强大的图形界面编程能力且代码执行效率高,可生成脱离VC++环境而独立运行的应用程序。可是VC++在数值处理分析和算法工具等方面不如MATLAB。
本文结合VC++和MATLAB 的各自优点,以VC++图形界面作为前台框架,MATLAB作为后台进行数值运算和数据可视化,利用组件对象模型(COM)技术作为媒介,实现了一维小波多尺度分解。
(matlab and vc++ program:
Wavelets are a class of a functions used to localize a given function in both space and scaling. A family of wavelets can be constructed from a function ...
)
- 2011-02-27 07:33:07下载
- 积分:1
-
hmm
隐马尔科夫模型,matalb实现,比较好的(Hidden Markov Model, matalb achieved relatively good)
- 2008-03-31 21:45:05下载
- 积分:1
-
cnh
学习matlab的解微分方程的小程序,已经测试无误(The solution of differential equations matlab learning applets, have been tested correctly)
- 2011-09-27 08:30:28下载
- 积分:1