搜索资源列表
Boyer-Moore-Hospool
- 匹配算法,Boyer-Moore-Hospool匹配算法 这个算法在大文件中搜索小pattern有很高效率。 推荐用来代替strstr() 这个实现我没有测过,不过应该不会有大问题。 C++的代码,容易使用:) -matching algorithm, Boyer - Moore-Hospool matching algorithm The algorithm in document search small pattern has a high efficiency
复件 轮渡问题
- 1. 汽车轮渡口,过江渡船每次能载10辆车过江,过江车辆分为客车类和货车类,上渡船有如下规定:同类车先到先上船,客车先于货车上渡船,且每上4辆客车,才允许上一辆货车。若等待客车不足4辆,则从货车代替,若无货车等待允许客车上船。试写一个算法模拟渡口管理。 算法设计: 1客车和货车均建立一个链式队列,初始均为空。以后来一辆车不是货车就是客车,因此可以说整个程序的事件驱动event就是这两个,客车表示1,货车表示0. 2轮船还没有到达时客车和货车均按次序排在
ferry
- 该算法模拟渡口管理。过江渡船每次能载10辆车过江,过江车辆分为客车类和货车类,上渡船有如下规定:同类车先到先上船,客车先于货车上渡船,且每上4辆客车,才允许上一辆货车。若等待客车不足4辆,则从货车代替,若无货车等待允许客车上船。-the algorithm simulation ferry management. Jiang Ferry each can carry 10 cars crossing the river, crossing the river into passenger veh
acjanchan
- 2^x mod n = 1 acm竞赛题 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimum x exists, print a line with 2^x mod n = 1. Print 2^?
Generic_Pool_demo
- Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP connection pool. One could easily implement a IMAP connection pool, then take the existing code and implement a LDAP connection pool. The program grow
串的Replace函数
- 串的Replace函数-Series Replace function
operate-character-string
- 1、 实现串赋值、串比较、求串长、串联接以及求子串这5种基本操作。 2、 能利用上述实现的基本操作完成置换Replace (&S, T, V)以及从串中删除一段子串StrDelete(&S,pos,len)的操作。
myString
- 自己编写的String类,可以用于代替<string>中的string类。支持==、!=、<、>等比较运算符,=复制运算符,有多种构造函数,动态分配内存,长度可变。容易转换成char*类型,而且使用深拷贝,指针使用得当。有常用的Index,Insert,Delete,Replace,SubString方法。而且源码中给出了String类的一个小应用。开发环境Visual C++ 6.0,测试程序为Console模式。-I have written the String c
string
- 实现顺序串各种基本算运算,建立串,输出串,输出它的长度,插入,删除,替换,提取,把两个串连接成一个串-String order to achieve a variety of basic counting operations, the establishment of string, the output string, the output of its length, insert, delete, replace, extract, the two strings into a stri
zz
- 这一算法实现了堆存存储结构的串的置换操作REPLACE(&S,T,V)-This algorithm achieved a stockpiling storage structure of the string replacement operation REPLACE (& S, T, V)
src
- Java版运算表达式解析器 主要功能: 对有括号的四则运算解析并求解. 支持多种表达式类型 思路: 1.把中缀表达式转化成后缀表达式 2.从后缀表达式得到解 注意: 该版本只支持1.6JDK,如果想替换成1.5JDK改替换LinkedList的几个方法就行了. 详细内容: http://jomper.javaeye.com/blog/464906-Java version of computing expressions parser mai
List
- 一个可以支持各种类型数据插入,检索,替换,查找的双向链表,已调式,比较好用。-It s a program which supports different kinds of insertion,traverse,replace and find, It s a list,and it s double linked. Already compled,useful.
BiTree
- 二叉树的各种应用,包括求深度、替换、返回某个节点、插入、删除、遍历等-Binary tree of a variety of applications, including seeking depth, replace, return to a node, insert, delete, traverse, etc.
SearchReplaceStr
- 实现查找、替换字符串\SearchReplaceStr\SearchReplaceStr.rar,很不错的vc源码,希望对大家有所帮助。-Achieve search, replace string \ SearchReplaceStr \ SearchReplaceStr.rar, very good vc source, we want to help.
mymath
- C语言,三角函数,平方根快速算法。运算速度很快,可以用来替换部分标准库 math.h 内的函数-C, trigonometric functions, square root of the fast algorithm. Fast operation, can be used to replace part of the standard library math.h functions within the
3sort
- 生成N阶幻方的所有形式。这个例子N等于3.可以用查找替换修改幻方阶数。输出用最简单的打印输出。-Magic square of order N generated all the forms. This case N = 3 can be modified using find and replace magic square of order. Output with a simple printout.
Ex1
- public: List() //构造函数 int size() const //返回链表的长度 bool full() const //返回链表是否已满 bool empty() const //返回链表是否已空 void clear() //清空链表 int retrieve( int position, string &x ) const //获取链表第position位置的元素到x,成功返回0,否则返回-1 int replace( int positi
LA2U-Replacealgorithm
- 一个项目研究中的缓存替换算法LA2U,在传统访问频率的基础上,考虑了更新频率,性能优于LRU和LFU-A replace algorithm called LA2U,which considers both access rate and update rate ,and performance is better than LRU and LFU
4_17
- 用C语言编写的查找替换字符串中的指定字符串的代码-Written in C code of the specified string in the string search and replace
cache-fifo
- CPU缓存算法,FIFO的模拟程序,通过VC2010编译,包括数据查找,替换算法-CPU caching algorithm FIFO algorithm FIF simulation, including data whether the hit, replace, contained on this basis can be done other algorithms,
