码迷,mamicode.com
首页 >  
搜索关键字:algorithm    ( 11758个结果)
UVA - 586 Instant Complexity
Description  Instant Complexity  Analyzing the run-time complexity of algorithms is an important tool for designing efficient programs that solve a problem. An algorithm that r...
分类:其他好文   时间:2014-07-19 18:26:15    阅读次数:268
I DP Hdu 1421
/* ______________________________________________________________________________________________________ author : Grant Yuan time : 2014.7.19 algorithm : dp ...
分类:其他好文   时间:2014-07-19 14:09:02    阅读次数:166
Java中各种排序算法
//插入排序:package org.rut.util.algorithm.support; import org.rut.util.algorithm.SortUtil;/** * @author treeroot * @since 2006-2-2 * @version 1.0 */public...
分类:编程语言   时间:2014-07-19 14:08:41    阅读次数:274
【足迹C++primer】47、Moving Objects(2)
Moving Objects(2) Rvalue References and Member Functions StrVec.h #ifndef STRVEC_H #define STRVEC_H #include #include #include // simplified implementation of the memory allocation strateg...
分类:编程语言   时间:2014-07-19 11:15:04    阅读次数:239
D 分组背包
/* —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— copyright : Grant Yuan time : 2014.7.18 algorithm...
分类:其他好文   时间:2014-07-19 08:21:28    阅读次数:183
J Dp
/* ___________________________________________________________________________________________ author : Grant Yuan time : 2014.7.18 algorithm : 最长上升子序列求和 —————...
分类:其他好文   时间:2014-07-19 08:12:13    阅读次数:210
USACO Section 2.1 The Castle
/* ID: lucien23 PROG: castle LANG: C++ */ /************************************************************************/ /* 求图的连通域问题,利用广度扫描 */ /******...
分类:其他好文   时间:2014-07-19 02:41:25    阅读次数:226
codeforces 448CPainting Fence
题目:codeforces 448CPainting Fence 题意:n个1* a [ i ] 的木板,把他们立起来,变成每个木板宽为1长为 a [ i ] 的栅栏,现在要给栅栏刷漆,刷子宽1,每一刷子可以刷任意长,现在让你求最少需要多少刷子? 分析:题目看似没有头绪,仔细分析的话其实很简单 首先,我们假如每次都刷一个木板,即一竖行,那么需要n次刷完,可见这是一个a...
分类:其他好文   时间:2014-07-19 02:35:45    阅读次数:184
USACO Section 2.1 Ordered Fractions
/* ID: lucien23 PROG: frac1 LANG: C++ */ #include #include #include #include using namespace std; typedef struct Fraction { int numerator; int denominator; Fraction(){} Fraction(int x, int y...
分类:其他好文   时间:2014-07-19 02:31:25    阅读次数:199
USACO Section 2.1 Sorting a Three-Valued Sequence
/* ID: lucien23 PROG: sort3 LANG: C++ */ #include #include #include #include using namespace std; void exchange(int nums[], int begin, int end, int N, int x); int sum = 0; int main() { ifstream ...
分类:其他好文   时间:2014-07-19 02:12:25    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!