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
/*
______________________________________________________________________________________________________
author : Grant Yuan
time : 2014.7.19
algorithm : dp
...
分类:
其他好文 时间:
2014-07-19 14:09:02
阅读次数:
166
//插入排序: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
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
/*
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
copyright : Grant Yuan
time : 2014.7.18
algorithm...
分类:
其他好文 时间:
2014-07-19 08:21:28
阅读次数:
183
/*
___________________________________________________________________________________________
author : Grant Yuan
time : 2014.7.18
algorithm : 最长上升子序列求和
—————...
分类:
其他好文 时间:
2014-07-19 08:12:13
阅读次数:
210
/*
ID: lucien23
PROG: castle
LANG: C++
*/
/************************************************************************/
/* 求图的连通域问题,利用广度扫描 */
/******...
分类:
其他好文 时间:
2014-07-19 02:41:25
阅读次数:
226
题目:codeforces 448CPainting Fence
题意:n个1* a [ i ] 的木板,把他们立起来,变成每个木板宽为1长为 a [ i ] 的栅栏,现在要给栅栏刷漆,刷子宽1,每一刷子可以刷任意长,现在让你求最少需要多少刷子?
分析:题目看似没有头绪,仔细分析的话其实很简单
首先,我们假如每次都刷一个木板,即一竖行,那么需要n次刷完,可见这是一个a...
分类:
其他好文 时间:
2014-07-19 02:35:45
阅读次数:
184
/*
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
/*
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