An optimal O(log log N)-time parallel algorithm for detecting all squares in a string

被引:15
作者
Apostolico, A
Breslauer, D
机构
[1] UNIV PADUA,DIPARTIMENTO ELETTR & INFORMAT,I-35100 PADUA,ITALY
[2] AARHUS UNIV,DEPT COMP SCI,CTR DANISH NATL RES FDN,BRICS,DK-8000 AARHUS,DENMARK
关键词
squares; repetitions; string matching; parallel algorithms; lower bounds;
D O I
10.1137/S0097539793260404
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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 possible optimal algorithm. When p processors are available, the bounds become Theta(inverted right perpendicular n log n)/p inverted left perpendicular + log log(interverted right perpendicular 1+p/n interverted left perpendicular) 2p). The algorithm uses an optimal parallel string-matching algorithm together with periodicity properties to locate the squares within the input string.
引用
收藏
页码:1318 / 1331
页数:14
相关论文
共 29 条
[1]   OPTIMAL PARALLEL DETECTION OF SQUARES IN STRINGS [J].
APOSTOLICO, A .
ALGORITHMICA, 1992, 8 (04) :285-319
[2]   OPTIMAL OFF-LINE DETECTION OF REPETITIONS IN A STRING [J].
APOSTOLICO, A ;
PREPARATA, FP .
THEORETICAL COMPUTER SCIENCE, 1983, 22 (03) :297-315
[3]  
APOSTOLICO A, 1984, RAIRO-INF THEOR APPL, V18, P147
[4]  
APOSTOLICO A, 1992, LECTURE NOTES COMPUT, V623, P296
[5]   OPTIMAL BOUNDS FOR DECISION-PROBLEMS ON THE CRCW PRAM [J].
BEAME, P ;
HASTAD, J .
JOURNAL OF THE ACM, 1989, 36 (03) :643-670
[6]   AVOIDABLE PATTERNS IN STRINGS OF SYMBOLS [J].
BEAN, DR ;
EHRENFEUCHT, A ;
MCNULTY, GF .
PACIFIC JOURNAL OF MATHEMATICS, 1979, 85 (02) :261-294
[7]  
Berstel J., 1979, LECTURE NOTES COMPUT, V71, P16
[8]   PARALLEL EVALUATION OF GENERAL ARITHMETIC EXPRESSIONS [J].
BRENT, RP .
JOURNAL OF THE ACM, 1974, 21 (02) :201-206
[9]   FINDING ALL PERIODS AND INITIAL PALINDROMES OF A STRING IN PARALLEL [J].
BRESLAUER, D ;
GALIL, Z .
ALGORITHMICA, 1995, 14 (04) :355-366
[10]   A LOWER BOUND FOR PARALLEL STRING MATCHING [J].
BRESLAUER, D ;
GALIL, Z .
SIAM JOURNAL ON COMPUTING, 1992, 21 (05) :856-862