# String matching algorithm
## Overview
This package includes a lot of common string matching algorithms for learning(and for use, sure!). I've already implemented 4 of them, they're:
* Brute force algorithm, with time complexity of __O((n-m+1)m)__ (where n is the length of Target string and m is the length of Pattern string)
* FSM(Finite State Automaton method), with time complexity of __O(m * SIGMA) preprocessing and O(n) matching time__. SIGMA is the length of the charset of T.
* KMP algorithm, with __O(m) amortized preprocessing complexity and O(n) amortized matching time__.
* Shift-and algorithm, with the time complexity of __O(m) preprocessing and O(n) matching__, as long as m < 64(or 32 if on a 32-bit machine).
kmp算法-基于C语言kmp算法实现的字符串匹配.zip
需积分: 1 142 浏览量
2024-05-16
06:10:22
上传
评论
收藏 3KB ZIP 举报
m0_57195758
- 粉丝: 1271
- 资源: 392
最新资源
- 爬取当当网图书数据并保存至本地Excel的Python实现
- html css js网页设计M-m笔记
- linux常用命令大全vaWeb-m笔记
- c语言文件读写操作代码CM-2023C-开发笔记
- vmware workstation pro 17 linux版
- 3479521_1710042575-1.rwmod
- 安装及环境配置UMCM-2023C-ma笔记
- (完整)数据库课程设计餐厅点餐说明书-21ab6d3c8beb172ded630b1c59eef8c75ebf952c.doc
- 2023-04-06-项目笔记 - 第一百五十四阶段 - 4.4.2.152全局变量的作用域-152 -2024.06.04
- 松哥解协议松哥解协议松哥解协议松哥解协议松哥解协议
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈