首页 | 本学科首页   官方微博 | 高级检索  
     检索      


Average-optimal string matching
Authors:Kimmo Fredriksson  Szymon Grabowski
Institution:aDepartment of Computer Science, University of Kuopio, P.O. Box 1627, 70211 Kuopio, Finland;bComputer Engineering Department, Technical University of Łódź, Al. Politechniki 11, 90–924 Łódź, Poland
Abstract:The exact string matching problem is to find the occurrences of a pattern of length m from a text of length n symbols. We develop a novel and unorthodox filtering technique for this problem. Our method is based on transforming the problem into multiple matching of carefully chosen pattern subsequences. While this is seemingly more difficult than the original problem, we show that the idea leads to very simple algorithms that are optimal on average. We then show how our basic method can be used to solve multiple string matching as well as several approximate matching problems in average optimal time. The general method can be applied to many existing string matching algorithms. Our experimental results show that the algorithms perform very well in practice.
Keywords:String matching  Multiple string matching  Optimality  Bit-parallelism
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号