码迷,mamicode.com
首页 >  
搜索关键字:__next__    ( 15001个结果
HTTP协议详解
HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是HTTP/1.0的第六版,HTTP/1.1的规范化工作正在进行之中,而且HTTP-NG(Next Generation of HTTP)的建议已经提出。 HTTP协议的主要特点可概括如下: 1.支持客户/服务器模式。...
分类:其他好文   时间:2014-09-09 13:30:08    阅读次数:139
Problem F: 小金廷的逆袭
分析:这道题主要是考我们关于KMP算法的应用的!题目要求求出两个字符串中最长的连续字符的个数!由于题目的上限很大,所以暴力搜索的话肯定是会超时的! 题解:这个,选第一个字符串为目标,使用两个for循环来依次枚举所选的这个字符串的子字符串,然后求出该字符串的next[]数组,然后使用kmp算法,和第二个字符串对比匹配,由于题目要求的是连续的最长的子字符串,所以在枚举时一旦发现不能匹配上,就直接跳出内循环,然后再从外循环重新开始枚举并搜索!...
分类:其他好文   时间:2014-09-09 13:27:08    阅读次数:177
数据结构算法总结
//链表基本操作tatus ListOppose(LinkList &L) { linklist p,q; p=L; p=p->next; L->next=NULL; while(p){ q=p; p=p->next; q->next=L->next; L->next=q; }...
分类:其他好文   时间:2014-09-09 13:15:48    阅读次数:372
【MongoDB】Download the mongoDB
First open the broswer and type the following url in the address bar.  http://www.mongodb.com/ then you will view the the next page. click the download mongodb button, and then regi...
分类:数据库   时间:2014-09-09 12:54:28    阅读次数:269
C++ 实现链表常用功能
首先头文件,定义了链表的常用函数: typedef struct node { int data; struct node* next; } Node; class LinkListUtil { public: LinkListUtil(); ~LinkListUtil(); //create Node* createByArray(int arr[], int len); ...
分类:编程语言   时间:2014-09-09 12:43:38    阅读次数:281
单链表倒序
1 mylist *listReverse(mylist *head) 2 { 3 mylist *p=head; 4 mylist *pfront=NULL,*pNext; 5 while(p!=NULL) 6 { 7 pNext=p->next;...
分类:其他好文   时间:2014-09-09 12:25:28    阅读次数:174
KMP算法的基本实现,C++
KMP算法的实现,基于算法导论32.4节。int* generateNext(string &p){ const int m = p.length(); int *next = new int[m]; int k = -1; next[0] = -1; for (int...
分类:编程语言   时间:2014-09-09 11:05:18    阅读次数:178
字典树(Trie)的基本实现(C++)
简要说明一下:主要实现了两个操作,get,setget用来查找字符串键值对应的value,set则用来向字典树添加key-value对。这个实现参考自Algorithms 4th Edition, Robert Sedgewickconst int inf = -(1 next[key[d]], k...
分类:编程语言   时间:2014-09-09 11:03:08    阅读次数:218
KMP
#include #include #include void GetNext(int *next, char *str){ int len = strlen(str); int i, k, flag = 1; next[0] = -1; for(i = 2; i < len; i++) //nex...
分类:其他好文   时间:2014-09-09 11:02:28    阅读次数:184
串的基本操作
一、实现主要功能为:1、输入模式串、目标串2、根据目标串生成next[]和nextval[]数组3、根据next[]或者nextval[]进行匹配。二、程序截图:三、代码: 1 #include 2 #include 3 #include 4 #include 5 using na...
分类:其他好文   时间:2014-09-09 10:55:38    阅读次数:366
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!