Saving Comparisons in the Crochemore-Perrin String Matching Algorithm

作者: Dany Breslauer

DOI: 10.1007/3-540-57273-2_44

关键词:

摘要: Abstract: "Crochemore and Perrin discovered an elegant linear- time constant-space string matching algorithm that makes at most 2n - m symbol comparison. This paper shows how to modify their algorithm to use fewer comparisons. Given any fixed [element]> 0, the new algorithm takes linear time, uses constant space, and makes at most [formula] symbol comparisons. If O(log m) space is available, then the algorithm makes at most [formula] symbol comparisons. The pattern preprocessing step also takes linear time and uses constant space. These are the first string matching algorithms that make fewer than 2n - m symbol comparisons and use sub-linear space."

参考文章(18)
Maxime Crochemore, Wojciech Rytter, Periodic Prefixes in Texts Springer, New York, NY. pp. 153- 165 ,(1993) , 10.1007/978-1-4613-9323-8_12
M. Lothaire, Combinatorics on Words ,(1984)
Zvi Galil, Joel Seiferas, Time-space-optimal string matching Journal of Computer and System Sciences. ,vol. 26, pp. 280- 294 ,(1983) , 10.1016/0022-0000(83)90002-8
Donald E Knuth, James H Morris, Jr, Vaughan R Pratt, Fast Pattern Matching in Strings SIAM Journal on Computing. ,vol. 6, pp. 323- 350 ,(1977) , 10.1137/0206024
Zvi Galil, Raffaele Giancarlo, On the exact complexity of string matching: lower bounds SIAM Journal on Computing. ,vol. 20, pp. 1008- 1020 ,(1991) , 10.1137/0220063
Zvi Galil, Joel Seiferas, Linear-time string-matching using only a fixed number of local storage locations Theoretical Computer Science. ,vol. 13, pp. 331- 336 ,(1981) , 10.1016/S0304-3975(81)80006-0
Leo J Guibas, Andrew M Odlyzko, Periods in strings Journal of Combinatorial Theory, Series A. ,vol. 30, pp. 19- 42 ,(1981) , 10.1016/0097-3165(81)90038-8
Alberto Apostolico, Raffaele Giancarlo, The Boyer Moore Galil string searching strategies revisited SIAM Journal on Computing. ,vol. 15, pp. 98- 105 ,(1986) , 10.1137/0215007
Maxime Crochemore, Dominique Perrin, Two-way string-matching Journal of the ACM. ,vol. 38, pp. 650- 674 ,(1991) , 10.1145/116825.116845
Zvi Galil, Joel Seiferas, Saving Space in Fast String-Matching SIAM Journal on Computing. ,vol. 9, pp. 417- 438 ,(1980) , 10.1137/0209032