A new efficient indexing algorithm for one-dimensional real scaled patterns
作者:
Highlights:
•
摘要
Given a pattern string P and a text string T, the one-dimensional real-scale pattern matching problem is to ask for all matched positions in T at which P occurs for some real scales ⩾1. The real-scale indexing problem, which is derived from the real-scale matching problem, aims to preprocess T, so that all positions of scaled P in T can be answered efficiently. In this paper, we propose an improved algorithm for the real-scale indexing problem. For constant-sized alphabets, our preprocessing takes time and space, achieving the answering time , where denotes the number of matched positions and . For the case of large-sized alphabets, our preprocessing can still be implemented with time and space, while the answering time is slightly increased to . Compared to Wangʼs preprocessing algorithm with time, our new indexing algorithm is a significant improvement.
论文关键词:Algorithm,String matching,Preprocessing,Real-scale
论文评审过程:Received 15 July 2007, Revised 7 December 2010, Accepted 5 May 2011, Available online 12 May 2011.
论文官网地址:https://doi.org/10.1016/j.jcss.2011.05.001