Two-dimensional periodicity in rectangular arrays

被引:39
作者
Amir, A [1 ]
Benson, G
机构
[1] Georgia Inst Technol, Coll Comp, Atlanta, GA 30332 USA
[2] Mt Sinai Med Ctr, Dept Biomath Sci, New York, NY 10029 USA
关键词
string matching; two-dimensional; periodicity; witness; sequential algorithm; parallel algorithm;
D O I
10.1137/S0097539795298321
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
String matching is rich with a variety of algorithmic tools. In contrast, multidimensional matching has had a rather sparse set of techniques. This paper presents a new algorithmic technique for two-dimensional matching: periodicity analysis. Its strength appears to lie in the fact that it is inherently two-dimensional. Periodicity in strings has been used to solve string matching problems. Multidimensional periodicity, however, is not as simple as it is in strings and was not formally studied or used in pattern matching. In this paper, we define and analyze two-dimensional periodicity in rectangular arrays. One definition of string periodicity is that a periodic string can self-overlap in a particular way. An analogous concept is true in two dimensions. The self-overlap vectors of a rectangle generate a regular pattern of locations where the rectangle may originate. Based on this regularity, we define four categories of periodic arrays-nonperiodic, lattice periodic, line periodic, and radiant periodic-and prove theorems about the properties of the classes. We give serial and parallel algorithms that find all locations where an overlap originates. In addition, our algorithms find a witness proving that the array does not self-overlap in any other location. The serial algorithm runs in time O(m(2)) (linear time) when the alphabet size is finite, and in O(m(2) log m) otherwise. The parallel algorithm runs in time O(log m) using O(m(2)) CRCW processors.
引用
收藏
页码:90 / 106
页数:17
相关论文
共 29 条
[1]   EFFICIENT STRING MATCHING - AID TO BIBLIOGRAPHIC SEARCH [J].
AHO, AV ;
CORASICK, MJ .
COMMUNICATIONS OF THE ACM, 1975, 18 (06) :333-340
[2]  
AMIR A, 1990, PROCEEDINGS OF THE FIRST ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P344
[3]   Optimal two-dimensional compressed matching [J].
Amir, A ;
Benson, G ;
Farach, M .
JOURNAL OF ALGORITHMS, 1997, 24 (02) :354-379
[4]   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
[5]   FAST PARALLEL AND SERIAL MULTIDIMENSIONAL APPROXIMATE ARRAY MATCHING [J].
AMIR, A ;
LANDAU, GM .
THEORETICAL COMPUTER SCIENCE, 1991, 81 (01) :97-115
[6]  
AMIR A, 1990, P 1 ACM SIAM S DISCR, P212
[7]  
Amir A., 1992, P 2 IEEE DAT COMPR C, P279
[8]  
Amir A., 1993, P 5 ACM S PAR ALG AR, P79
[9]  
AMIR A, 1992, 3RD P S DISCR ALG OR, P440
[10]   PARALLEL CONSTRUCTION OF A SUFFIX TREE WITH APPLICATIONS [J].
APOSTOLICO, A ;
ILIOPOULOS, C ;
LANDAU, GM ;
SCHIEBER, B ;
VISHKIN, U .
ALGORITHMICA, 1988, 3 (03) :347-365