2019年5月7日

C++ STL 之 容器

摘要: 根据侯捷老师的介绍,STL > 我们常说的标准库函数 。STL(Standard Template Library)中还包括了容器(containers),迭代器(iterators),算法(algorithms),分配器(allocators),适配器(adapters),仿函式(functors 阅读全文

posted @ 2019-05-07 11:25 逆光也很美 阅读(208) 评论(1) 推荐(0) 编辑

KMP模式匹配算法

摘要: 准备工作都做好,最后就是与原字符串的匹配了。在匹配前,先完成对前缀表的计算 prefix_table(pattern, prefix ,PatternLength ); move_prefix_table(prefix ,PatternLength ); 在匹配过程中,原字符串的索引是一直增加的,不 阅读全文

posted @ 2019-05-07 09:20 逆光也很美 阅读(351) 评论(0) 推荐(0) 编辑

导航