摘要: 1 #include 2 #include 3 void next(char T[],int nextArr[],int n); 4 5 int match(char S[],int tn,char T[],int sn,int nextArr[]); 6 7 int main(void){ ... 阅读全文
posted @ 2015-05-18 14:57 Object_mo 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 数据结构是指相互之间存在一定关系的数据元素的集合。按照视点的不同 , 数据结构分为逻辑结构和存储结构。 数据结构从 逻辑 上分为4 类 : 集 合、线性结构、树结构和图结构 , 常用的存储结构有两种 : 顺序存储结构和链接存储结构 阅读全文
posted @ 2015-05-15 11:05 Object_mo 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 void ojmd(int *a,int *b); 4 5 void ojmd_dg(int *a,int *b); 6 7 int main(void){ 8 int a=12; 9 int b=6;10 ojmd(&a... 阅读全文
posted @ 2015-05-15 08:32 Object_mo 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int lcs(char a[], char b[],int na,int nb,int j); 4 int main(void){ 5 char a[]="abcdefg"; 6 char b[]="bdcedeabf"; 7 ... 阅读全文
posted @ 2015-05-13 16:10 Object_mo 阅读(176) 评论(0) 推荐(0) 编辑
摘要: //不能通过编译,没有引入队列头文件 1 #include 2 #define MAX_VERTEX_NUM; 3 typedef int infoType; 4 typedef int vertexType; 5 6 typedef struct ArcNode{ 7 ... 阅读全文
posted @ 2015-05-08 14:37 Object_mo 阅读(13369) 评论(0) 推荐(0) 编辑
摘要: package cn.it;import java.io.File;import java.util.LinkedList;import java.util.Queue;public class FileUtil { public static void main(String[] args) { ... 阅读全文
posted @ 2015-05-08 09:51 Object_mo 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 typedef char ele; 3 4 typedef struct BiTNode{ 5 ele e; 6 struct BiTNode *lnode,*rnode; 7 }bitNode,*bitree; 8 9 void visit(ele ... 阅读全文
posted @ 2015-05-08 09:46 Object_mo 阅读(2031) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 #define SIZE 10 4 typedef char ele; 5 6 typedef struct{ 7 ele *e; 8 int front; 9 int rear;10 }cycleQueue;11 12 13 //init... 阅读全文
posted @ 2015-05-08 09:07 Object_mo 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 typedef char ele; 3 typedef struct node{ 4 ele e; 5 struct node qnode; 6 }QNode,*Qptr; 7 8 typedef struct{ 9 Qptr front... 阅读全文
posted @ 2015-05-08 08:37 Object_mo 阅读(1858) 评论(0) 推荐(0) 编辑
摘要: 1 //不考虑任何情况的判断 package cn.it.struct; 2 3 public class MyStack { 4 private int top=-1; 5 6 private Node current; 7 8 9 p... 阅读全文
posted @ 2015-05-07 17:37 Object_mo 阅读(246) 评论(0) 推荐(0) 编辑
mozhuhao