搜索资源列表
String_Set.rar
- 基于MFC和STL平台的字符串类,可以实现在快速字符串搜索-MFC-based platform and STL string type, can achieve a rapid search string
LM_huffman
- 本程序在MATLAB环境下,对TXT文档中的字符串进行读取,并进行霍夫曼压缩编码,最终输出压缩后的序列长度和压缩比-This procedure in the MATLAB environment, TXT document on the string for reading, and Huffman coding, the final output of compressed sequence length and compression ratio
ACandACBM
- 多模字符串匹配算法。AC和AC-BM算法的c语言实现。以及字符串匹配算法的相关论文,英文原版论文,很有收藏参考价值。-Multi-mode string matching algorithm. AC and AC-BM algorithm c language. String matching algorithm, as well as the relevant papers, original papers in English, it is collection of reference v
SomeProgramForDataStructure
- KMP字符串匹配的c实现,测试字符串为char a[20]="abcdefghijk" char b[20]="abcdefgg" 取各位数字的算法,最大有效测试数据长整形最N=100000000 贪婪算法:已知若干面值的人名币,如何找零钱,使张数最小,测试面值a[4]={25,10,5,1} 快速排序C++实现-KMP string matching c to achieve the test string to char a [20] = " abcdefghijk"
hfmcpp
- 赫夫曼编码本程序实现了使用赫夫曼编码压缩数据;输入一串字符串sourceCode——为方便理解,暂时要求字符串只包含大写字母和空格,如果你愿意, 很容易就可以推广到所有的字符——计算出字符串中各个字母的权重,然后对其进行赫夫曼编码,输出赫夫曼树。 将赫夫曼树的叶子结点存储到有序二叉树中,输出原字符串经压缩后得到的用 0 和 1 表示的新字符串destCode; 然后利用赫夫曼树将字符串destCode进行译码,得到目标字符串objCode,比较objCode和sourceCod
bm
- BM可以说是继KMP算法之后更加 优秀的字符串匹配算了,BM 是大师Boyer-Moore的算法杰作, 所以称BM算法, 相比KMP算法效率提高了不少, -BM can be said that after following the KMP algorithm for string matching better forget, BM is the master of the Boyer-Moore algorithm masterpiece, so that BM algorit
My_BM4
- BM算法源代码,是用c++写的。适用于字符串的多模式匹配问题。-BM algorithm source code is written in c++. For a string of multi-pattern matching problem.
Characters_and_string_operation
- MATLAB字符与字符串编程,含大量的实例,具有参考价值-MATLAB programming characters and a string containing a large number of examples, with reference value
KMP
- KMP是一种字符串查找算法,具有无需回溯的特点,效率高,本源码实现了KMP算法-KMP
qsort
- 快速排序的集合,包含数字排序,字符串排序,浮点型数列排序,是一部不可多得的黑书!-A collection of quick sort, including the number of sorting, string sorting, sorting float series, is a rare black book!
huffman
- 利用二叉树结构实现赫夫曼编/解码器。 基本要求: 1、初始化:能够对输入的任意长度的字符串s进行统计,统计每个字符的频度,并建立赫夫曼树 2、建立编码表:利用已经建好的赫夫曼树进行编码,并将每个字符的编码输出。 3、编码:根据编码表对输入的字符串进行编码,并将编码后的字符串输出。 4、译码:利用已经建好的赫夫曼树对编码后的字符串进行译码,并输出译码结果。 5、打印:以直观的方式打印赫夫曼树(选作) 6、计算输入的字符串编码前和编码后的长度,并进行分析,讨论赫夫曼编码的
string
- 1、为该类设计构造函数和析构函数,要求构造函数不少于两个 2、为该类设计合理的成员变量 3、为string类提供必要的成员函数,可以参考C++类库的string类提供了那些成员函数,起码包括字符查找 获得C风格字符串、获得字符串长度、字符串比较等。 4、要求该类的设计有良好的封装性 5、有一个能正常运行的测试程序,测试该类的所有成员函数-1, the design for the class constructor and destructor, constructor re
实现字符串特征的统计
- 实现字符串特征的统计,初学者讨论交流-The string features statistics, beginners discuss and exchange. . .
在字符串中提取部分字符
- 在字符串中提取部分字符 在字符串中提取部分字符
输入表达式字符串求值
- 输入表达式字符串,以“=”表示结束, 计算并输出表达式值。 操作数可以是整数或实数,操作符有 “+”、“-”、“*”、“/”、“^”(乘方)和 “sin( )”(正弦)、“cos( )”(余弦)、“log( )(对数)、“ln( )”(自然对数)等函数。
sort_nat
- 输入字符串细胞数组 输出按自然顺序排列的结果及其索引(input: cell array of strings output: natural order sort results and index)
Palindrome subsequences
- 求一个长度不超过15的字符串的回文子序列个数(子序列长度>=1)。 输入描述:输入一个长度不超过15的字符串,字符串均由小写字母表示 输出描述:输出其回文子序列个数 样例输入:abaa 样例输出:10(Find the number of palindrome subsequences of a string of no longer than 15 (subsequence length >=1). Input descr iption
RKRGST
- 用于字符串文本的匹配算法,融入了kr算法,hash函数映射的方法,缩短了计算时间成本。多用于抄袭相似度比对等领域(The matching algorithm for string texts incorporates the kr algorithm and the hash function mapping method, which reduces the computation time cost.)
删除字符串
- 在某个文件中查找特定字符串A和字符串B,并删除A和B之间的内容