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 条
  • [31] 2-DIMENSIONAL ROTONS
    PADMORE, TC
    PHYSICAL REVIEW LETTERS, 1974, 32 (15) : 826 - 829
  • [32] 2-DIMENSIONAL MATTER
    DASH, JC
    SCIENTIFIC AMERICAN, 1973, 228 (05) : 30 - 40
  • [33] 2-DIMENSIONAL ELECTROSTRICTION
    KNOPS, RJ
    QUARTERLY JOURNAL OF MECHANICS AND APPLIED MATHEMATICS, 1963, 16 (03): : 377 - &
  • [34] 2-DIMENSIONAL PROBLEMS
    SPENCER, TW
    JOURNAL OF GEOPHYSICAL RESEARCH, 1958, 63 (03): : 637 - 643
  • [35] 2-DIMENSIONAL ECHOENCEPHALOGRAPHY
    KOPEC, J
    PHYSICS IN MEDICINE AND BIOLOGY, 1972, 17 (05): : 737 - &
  • [36] 2-DIMENSIONAL HONEYCOMBS
    BLEICHER, MN
    TOTH, LF
    AMERICAN MATHEMATICAL MONTHLY, 1965, 72 (09): : 969 - &
  • [37] 2-DIMENSIONAL JET
    CONWAY, WE
    PROCEEDINGS OF THE CAMBRIDGE PHILOSOPHICAL SOCIETY-MATHEMATICAL AND PHYSICAL SCIENCES, 1966, 62 : 519 - &
  • [38] 2-DIMENSIONAL LIFE
    DEDUVE, C
    MILLER, SL
    PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCES OF THE UNITED STATES OF AMERICA, 1991, 88 (22) : 10014 - 10017
  • [39] 2-DIMENSIONAL ELECTROPHORESIS
    GORG, A
    NATURE, 1991, 349 (6309) : 545 - 546
  • [40] 2-DIMENSIONAL GELS
    REHAGE, H
    BURGER, A
    PHYSICA A, 1993, 194 (1-4): : 424 - 431