随笔分类 - 算法
摘要:http://blog.sina.com.cn/s/blog_5212bec30100o03y.html http://blog.csdn.net/u010385646/article/details/51884236 你会经常看到网上出现“这怎么做,这不是NP问题吗”、“这个只有搜了,这已经被证明
阅读全文
摘要:const int DefaultVertices = 30; template<class T,class E> struct Edge{ int dest; //边结点定义 Edge<T,E> *link; //下一条边链指针 Edge(){} Edge(int num,E weight):de
阅读全文
摘要:#include<iostream>#include<cassert> using namespace std; template <class T>//链栈 struct LinkNode{T data;LinkNode<T> *Link;LinkNode(LinkNode<T> *pr=NULL
阅读全文
摘要:#include<iostream>#include<cassert>#include<cstring>#include<string>using namespace std; int maxLength=100;const int stackIncreament = 20;template<cla
阅读全文
摘要:#include<iostream> using namespace std;template <class T>struct linkNode{ T data; linkNode<T> *link; linkNode(linkNode<T> *pr=NULL){link=pr;} linkNode
阅读全文
摘要:#include<iostream>//本线性表的last为个数,例如last为5,线性表值从0-4#include<cstdlib> const int defaultsize = 100; using namespace std; template<class T>class SeqList{p
阅读全文

浙公网安备 33010602011771号