Alphabet-independent two-dimensional witness computation

被引:24
作者
Galil, Z [1 ]
Park, K [1 ]
机构
[1] SEOUL NATL UNIV,DEPT COMP ENGN,SEOUL 151742,SOUTH KOREA
关键词
two-dimensional periodicity; pattern matching; witness computation;
D O I
10.1137/S0097539792241941
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We study two-dimensional periodicity, introduced by Amir and Benson. We characterize periods of a two-dimensional array, namely, the vectors such that two copies of the array, one shifted by the vector over the other, overlap without a mismatch. Using this characterization, we design an alphabet-independent linear-time algorithm for two-dimensional witness computation, i.e., an O(m(2))-time algorithm that finds periods of an m x m array as well as witnesses against nonperiods of the array among the vectors whose length is less than m/4. The constant in the O notation does not depend on the alphabet size. Combined with the alphabet-independent text-processing algorithm of Amir, Benson, and Farach [SIAM J. Comput., 23 (1994), pp. 313-323], this leads to the first alphabet-independent linear-time algorithm for two-dimensional pattern matching.
引用
收藏
页码:907 / 935
页数:29
相关论文
共 14 条
[1]   EFFICIENT STRING MATCHING - AID TO BIBLIOGRAPHIC SEARCH [J].
AHO, AV ;
CORASICK, MJ .
COMMUNICATIONS OF THE ACM, 1975, 18 (06) :333-340
[2]   AN ALPHABET INDEPENDENT APPROACH TO 2-DIMENSIONAL PATTERN-MATCHING [J].
AMIR, A ;
BENSON, G ;
FARACH, M .
SIAM JOURNAL ON COMPUTING, 1994, 23 (02) :313-323
[3]   EFFICIENT PATTERN-MATCHING WITH SCALING [J].
AMIR, A ;
LANDAU, GM ;
VISHKIN, U .
JOURNAL OF ALGORITHMS-COGNITION INFORMATICS AND LOGIC, 1992, 13 (01) :2-32
[4]  
AMIR A, 1992, PROCEEDINGS OF THE THIRD ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P440
[5]  
AMIR A, 1991, UNPUB 2 DIMENSIONAL
[7]  
Bird R. S., 1977, Information Processing Letters, V6, P168, DOI 10.1016/0020-0190(77)90017-5
[8]   AN OPTIMAL O(LOG LOG-N) TIME PARALLEL STRING MATCHING ALGORITHM [J].
BRESLAUER, D ;
GALIL, Z .
SIAM JOURNAL ON COMPUTING, 1990, 19 (06) :1051-1058
[9]  
KARP R, 1972, 4TH P ANN ACM S THEO, P125, DOI DOI 10.1145/800152.804905
[10]   EFFICIENT RANDOMIZED PATTERN-MATCHING ALGORITHMS [J].
KARP, RM ;
RABIN, MO .
IBM JOURNAL OF RESEARCH AND DEVELOPMENT, 1987, 31 (02) :249-260