Finding maximal 2-dimensional palindromes

被引:6
|
作者
Geizhals, Sara H. [1 ]
Sokol, Dina [1 ,2 ]
机构
[1] CUNY, Grad Ctr, 365 Fifth Ave, New York, NY 10016 USA
[2] CUNY, Brooklyn Coll, 2900 Bedford Ave, Brooklyn, NY 11210 USA
关键词
Palindrome; Pattern matching; 2-dimensional; Centrosymmetric factor;
D O I
10.1016/j.ic.2019.03.001
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This paper extends the problem of palindrome searching into a higher dimension, addressing two definitions of 2D palindromes. The first definition implies a square, while the second definition (also known as a centrosymmetric factor) can be any rectangular shape. We present a linear time algorithm for locating all maximal square 2D palindromes in a given 2D text. For the second definition of palindromes (rect2DP), we present two different algorithms. Given a text of size n x n, the first algorithm has time O(n(3)), which is linear in the worst case output size. The second algorithm has time O(n(2) logn + occ logn), where occis the number of maximal rect2D Pin the output. This provides a tradeoff in terms of output size; if the output size is small, the second algorithm is preferable, while the first would be more efficient if the output size is Theta (n(3)). (C) 2019 Elsevier Inc. All rights reserved.
引用
收藏
页码:161 / 172
页数:12
相关论文
共 50 条
  • [41] 2-DIMENSIONAL TIME
    NUSENOFF, RE
    PHILOSOPHICAL STUDIES, 1976, 29 (05) : 337 - 341
  • [42] ON 2-DIMENSIONAL PERCOLATION
    CONWAY, AR
    GUTTMANN, AJ
    JOURNAL OF PHYSICS A-MATHEMATICAL AND GENERAL, 1995, 28 (04): : 891 - 904
  • [43] 2-DIMENSIONAL MAN
    EDWARDS, G
    NEW SOCIETY, 1969, 14 (375): : 910 - 911
  • [44] 2-DIMENSIONAL FACTORIZATION
    KRONROD, MA
    DOKLADY AKADEMII NAUK SSSR, 1974, 215 (04): : 788 - 791
  • [45] A 2-DIMENSIONAL KICKSORTER
    CHASE, R
    PROCEEDINGS OF THE INSTITUTE OF RADIO ENGINEERS, 1959, 47 (03): : 464 - 464
  • [46] 2-DIMENSIONAL ELECTROPHORESIS
    GALTEAU, MM
    ANALUSIS, 1989, 17 (08) : P33 - P34
  • [47] 2-DIMENSIONAL POLYMERS
    STUPP, SI
    SON, S
    LIN, HC
    LI, LS
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 1991, 202 : 276 - POLY
  • [48] 2-DIMENSIONAL SUPERFLUID
    MCCLINTOCK, PVC
    NATURE, 1979, 278 (5700) : 120 - 120
  • [49] 2-DIMENSIONAL CRYSTALLIZATION
    DENKOV, ND
    VELEV, OD
    KRALCHEVSKY, PA
    IVANOV, IB
    YOSHIMURA, H
    NAGAYAMA, K
    NATURE, 1993, 361 (6407) : 26 - 26
  • [50] 2-DIMENSIONAL SPECTROSCOPY
    ERNST, RR
    CHIMIA, 1975, 29 (04) : 179 - 183