搜索资源列表
RK
- 实验RK算法,即利用Hash方法和素数理论,首先定义一个Hash函数(hash (r) = r mod q),然后将模式串P和文本串T中长度为m的子串利用Hash函数转换成数值。显然只需比较那些与模式串具有相同Hash函数值的子串。 当然因为Hash冲突的存在,还要进一步进行字符串比较,但只要选择适当的素数q, Hash冲突的概率就会很小 -Experimental RK algorithm, namely the use of Hash methods and prime number
key_Queue
- 3. 参考void Reverse(LinkQueue &Q)函数,定义新的函数int Palindrome_Test(char str[]),判断字符串str是否回文序列,若是则返回1,否则返回0。写出程序或用文字描述算法的执行步骤。-3. Reference void Reverse (LinkQueue & Q) function, define a new function int Palindrome_Test (char str []), to determine wheth