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


Efficient indexing algorithms for one-dimensional discretely-scaled strings
Authors:Yung-Hsing Peng  Kuo-Si Huang  Hsing-Yen Ann
Affiliation:Department of Computer Science and Engineering, National Sun Yat-sen University, Kaohsiung, Taiwan
Abstract:The discretely-scaled string indexing problem asks one to preprocess a given text string T, so that for a queried pattern P, the matched positions in T that P appears with some discrete scale can be reported efficiently. For solving this problem, Wang et al. first show that with an O(|T|log|T|)-time preprocessing on T, all matched positions can be reported in O(|P|+Ud) time, where |T|, |P|, and Ud denote the length of T, the length of P, and the number of matched positions for discretely-scaled P in T, respectively. In this paper, for fixed alphabets we propose the first-known optimal indexing algorithm that takes O(|T|) and O(|P|+Ud) time in its preprocessing and query phases, respectively. For integer and unbounded alphabets, our new algorithm can also be extended to obtain the best-known results.
Keywords:Algorithm   String matching   Discrete scale
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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