两种改进的单模式匹配算法

Chuanhan Liu, Yongcheng Wang, Derong Liu, Danglin Li
{"title":"两种改进的单模式匹配算法","authors":"Chuanhan Liu, Yongcheng Wang, Derong Liu, Danglin Li","doi":"10.1109/ICAT.2006.134","DOIUrl":null,"url":null,"abstract":"In this paper, two single pattern matching algorithms are presented, each of which is composed by a smallest suffix automaton and a forward finite state automaton. Whatever the suffix automaton or the forward finite state automaton is running, the window shifts m-R characters and then the suffix automaton starts running if no pattern prefix is found (R is zero) in the first algorithm or R is not greater than half of m in the second algorithm, otherwise, the forward finite state automaton starts running. Their time complexities are all O(n) in the worst case and O(n/m) in the best case. The experimental results show that the average time complexities of two algorithms are less than that of RF and LDM for short patterns and that of BM for long patterns over small alphabets or short lengths over large alphabets.","PeriodicalId":133842,"journal":{"name":"16th International Conference on Artificial Reality and Telexistence--Workshops (ICAT'06)","volume":"75 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2006-11-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"9","resultStr":"{\"title\":\"Two Improved Single Pattern Matching Algorithms\",\"authors\":\"Chuanhan Liu, Yongcheng Wang, Derong Liu, Danglin Li\",\"doi\":\"10.1109/ICAT.2006.134\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In this paper, two single pattern matching algorithms are presented, each of which is composed by a smallest suffix automaton and a forward finite state automaton. Whatever the suffix automaton or the forward finite state automaton is running, the window shifts m-R characters and then the suffix automaton starts running if no pattern prefix is found (R is zero) in the first algorithm or R is not greater than half of m in the second algorithm, otherwise, the forward finite state automaton starts running. Their time complexities are all O(n) in the worst case and O(n/m) in the best case. The experimental results show that the average time complexities of two algorithms are less than that of RF and LDM for short patterns and that of BM for long patterns over small alphabets or short lengths over large alphabets.\",\"PeriodicalId\":133842,\"journal\":{\"name\":\"16th International Conference on Artificial Reality and Telexistence--Workshops (ICAT'06)\",\"volume\":\"75 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2006-11-29\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"9\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"16th International Conference on Artificial Reality and Telexistence--Workshops (ICAT'06)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICAT.2006.134\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"16th International Conference on Artificial Reality and Telexistence--Workshops (ICAT'06)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICAT.2006.134","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 9

摘要

本文提出了两种单模式匹配算法,每一种算法都由一个最小后缀自动机和一个前向有限状态自动机组成。无论后缀自动机还是前向有限状态自动机运行,如果在第一个算法中没有找到模式前缀(R为零)或在第二个算法中R不大于m的一半,则窗口移动m-R个字符,然后后缀自动机开始运行,否则,前向有限状态自动机开始运行。它们的时间复杂度在最坏情况下都是O(n)在最好情况下都是O(n/m)。实验结果表明,对于短模式,两种算法的平均时间复杂度均低于RF和LDM算法,对于长模式的小字母或短长度的大字母,两种算法的平均时间复杂度均低于BM算法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Two Improved Single Pattern Matching Algorithms
In this paper, two single pattern matching algorithms are presented, each of which is composed by a smallest suffix automaton and a forward finite state automaton. Whatever the suffix automaton or the forward finite state automaton is running, the window shifts m-R characters and then the suffix automaton starts running if no pattern prefix is found (R is zero) in the first algorithm or R is not greater than half of m in the second algorithm, otherwise, the forward finite state automaton starts running. Their time complexities are all O(n) in the worst case and O(n/m) in the best case. The experimental results show that the average time complexities of two algorithms are less than that of RF and LDM for short patterns and that of BM for long patterns over small alphabets or short lengths over large alphabets.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信