会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Object_mo
think more , work more
博客园
首页
新随笔
联系
订阅
管理
2015年5月18日
KMP算法(蛮力法)
摘要: 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
阅读(428)
评论(0)
推荐(0)
2015年5月15日
算法基础概念
摘要: 数据结构是指相互之间存在一定关系的数据元素的集合。按照视点的不同 , 数据结构分为逻辑结构和存储结构。 数据结构从 逻辑 上分为4 类 : 集 合、线性结构、树结构和图结构 , 常用的存储结构有两种 : 顺序存储结构和链接存储结构
阅读全文
posted @ 2015-05-15 11:05 Object_mo
阅读(134)
评论(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
阅读(549)
评论(0)
推荐(0)
2015年5月13日
1 最长公共子序列(just work 递归实现)
摘要: 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
阅读(179)
评论(0)
推荐(0)
2015年5月8日
图--广度优先遍历/深度优先遍历(c语言实现)
摘要: //不能通过编译,没有引入队列头文件 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
阅读(13420)
评论(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
阅读(430)
评论(0)
推荐(0)
二叉树--遍历(c语言简单实现)
摘要: 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
阅读(2045)
评论(0)
推荐(0)
CycleQueue--循环队列(c语言简单实现)
摘要: 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
阅读(447)
评论(0)
推荐(0)
Queue--队列(c语言简单实现)
摘要: 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
阅读(1876)
评论(0)
推荐(0)
2015年5月7日
stack-- 基于双向链表实现(java实现)--基于数组实现(c实现)
摘要: 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
阅读(248)
评论(0)
推荐(0)
下一页
公告
mozhuhao