AN OPTIMAL O(LOG LOG N)-TIME PARALLEL ALGORITHM FOR DETECTING ALL SQUARES IN A STRING

Citation
A. Apostolico et D. Breslauer, AN OPTIMAL O(LOG LOG N)-TIME PARALLEL ALGORITHM FOR DETECTING ALL SQUARES IN A STRING, SIAM journal on computing, 25(6), 1996, pp. 1318-1331
Citations number
29
Categorie Soggetti
Computer Sciences","Computer Science Theory & Methods",Mathematics
Journal title
ISSN journal
00975397
Volume
25
Issue
6
Year of publication
1996
Pages
1318 - 1331
Database
ISI
SICI code
0097-5397(1996)25:6<1318:AOOLNP>2.0.ZU;2-S
Abstract
An optimal O(log log n)-time concurrent-read concurrent-write parallel algorithm for detecting all squares in a string is presented. A tight lower bound shows that over general alphabets, this is the fastest po ssible optimal algorithm. When p processors are available, the bounds become Theta(inverted right perpendicular n log n)/p inverted left per pendicular + log log(interverted right perpendicular 1+p/n interverted left perpendicular) 2p). The algorithm uses an optimal parallel strin g-matching algorithm together with periodicity properties to locate th e squares within the input string.