EFFICIENT STRING-MATCHING ON PACKED TEXTS

Citation
D. Breslauer et L. Gasieniec, EFFICIENT STRING-MATCHING ON PACKED TEXTS, Informatique theorique et applications, 30(6), 1996, pp. 521-544
Citations number
40
Categorie Soggetti
Computer Sciences","Computer Science Information Systems
ISSN journal
09883754
Volume
30
Issue
6
Year of publication
1996
Pages
521 - 544
Database
ISI
SICI code
0988-3754(1996)30:6<521:ESOPT>2.0.ZU;2-9
Abstract
The so called ''four Russians technique'' is often used to speed up al gorithms by packing several data items in a single memory cell. Given a sequence of n symbols over a constant size alphabet, one can pack th e sequence into O(n/lambda) memory cells in O(log lambda) time using n /log lambda processors, where lambda is the number of symbols packed i nto one memory word. Given a pattern of length m and a text of length n, this paper presents an efficient CRCW-PRAM string-matching algorith m for packed strings that takes O(log log (m/lambda)) time and perform s O(n/lambda) operations for lambda = O(log n), an improvement by a fa ctor of lambda on the number of operations used in previous algorithms . Using this string-matching algorithm one can test if a string is squ are-free and find all palindromes in a string in O(log log n) time usi ng n/log log n processors.