码迷,mamicode.com
首页 >  
搜索关键字:struct dpif_class    ( 18974个结果
uva 122 - Trees on the level(一棵看着书都写不利索的树……)
#include #include #include #include #include #include using namespace std; const int maxn = 1000; char s[maxn]; bool failed; vector ans; struct node { bool have_value; int v; node *left,*...
分类:其他好文   时间:2014-07-27 11:54:43    阅读次数:198
HNU 12834 Thread Tree
递归输出就行了 #include using namespace std; struct tree{ int dot; string s; }t[1020]; int si[1020],a[1020][1020]; void print(int x) { for(int i=0;i<=si[x]-1;i++) { for(int j=1;j<=t[...
分类:其他好文   时间:2014-07-27 11:48:53    阅读次数:188
Girls and Boys
点击打开链接 二分图匹配,hopcroft-karp #include #include #include #include using namespace std; const int MAXN = 5010; const int MAXM = 50010; struct Edge{ int to, next; }edge[ MAXM ]; int head[ MAXN ], to...
分类:其他好文   时间:2014-07-27 11:45:03    阅读次数:225
hdu 1253 胜利大逃亡(bfs)
胜利大逃亡 Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 20468    Accepted Submission(s): 8152 题意给出一个长宽高为A,B,C,三维的地图要求在规定时间内从(0,0,0,)走...
分类:其他好文   时间:2014-07-27 11:43:59    阅读次数:235
Struck跟踪算法(一)
Struct跟踪算法,自适应的一边跟踪,一边检测的跟踪目标物体算法,类似于TLD算法,运用了SVM分类器,HAAR特征等特征提取算法。。。...
分类:其他好文   时间:2014-07-27 11:36:56    阅读次数:360
链表队列的实现
队列也是数据结构中比较重要的一种,和栈相反的是,队列是先进先出的,先进队列的可以先出队,跟平时我们排队是一样的。在允许多通道程序运行的计算机系统中,同时几个作业运行。凡是申请输出的作业都从队尾进入队列。 现在用链表实现队列,先定义一个链表结点: typedef struct QNode { int data; QNode *next; }QNode,*QueuePtr;给队列定义一个头结点...
分类:其他好文   时间:2014-07-27 11:33:22    阅读次数:212
数据结构之十字链表
#define MAXSIZE 100    #define ERROR 1    #define OK 0     typedef struct{          int a;          char s;     }ElemType;      typedef struct{         ElemType e;         int i,j;        ...
分类:其他好文   时间:2014-07-27 11:13:32    阅读次数:289
数据结构之稀疏矩阵
#define MAXSIZE 12500   typedef struct{        int s;        char b;     }ElemType;   typedef struct{         int i,j;         ElemType e;     }Tripe;   typedef struct{       int...
分类:其他好文   时间:2014-07-27 11:12:52    阅读次数:161
数据结构之线索二叉树
typedef enum PointerTag{Link,Thread};   typedef struct{         char ch;         int num;   }ElemType;   typedef struct{     BiThrNode *lchild,*rchild;     PointerTag Ltag,Rtag;     ElemType d...
分类:其他好文   时间:2014-07-27 11:12:02    阅读次数:208
数据结构之哈夫曼树
typedef struct{        int wiget;        int lchild,rchild,parent;        int data;     }HNode,*HTree;      void select(HTree &H,int i,int &s1,int &s2){              int tmp,min1,min2=0;   ...
分类:其他好文   时间:2014-07-27 11:11:52    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!