EFFICIENT PATTERN-MATCHING WITH SCALING

被引:38
|
作者
AMIR, A
LANDAU, GM
VISHKIN, U
机构
[1] GEORGIA INST TECHNOL, COLL COMP, ATLANTA, GA 30332 USA
[2] POLYTECH INST NEW YORK, DEPT COMP SCI, BROOKLYN, NY 11201 USA
[3] UNIV MARYLAND, DEPT ELECT ENGN, COLLEGE PK, MD 20742 USA
[4] UNIV MARYLAND, INST ADV COMP STUDIES, COLLEGE PK, MD 20742 USA
[5] TEL AVIV UNIV, SCH MATH SCI, DEPT COMP SCI, IL-69978 TEL AVIV, ISRAEL
来源
JOURNAL OF ALGORITHMS-COGNITION INFORMATICS AND LOGIC | 1992年 / 13卷 / 01期
基金
美国国家科学基金会;
关键词
D O I
10.1016/0196-6774(92)90003-U
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The problem of pattern matching with scaling is defined. The input for the two-dimensional version of the problem consists of an n × n "text" matrix and an m × m "pattern" matrix. We want to find all occurrences of the pattern in the text, scaled to all natural multiples. That is, for every natural number i, 1 ≤ i ≤ [ n m] we seek all occurrences of the pattern in the text, where each character of the pattern corresponds to an i × i square in the text. This problem is useful for some tasks in computer vision. Our main contribution is a linear time algorithm for the problem. We also consider situations where the text is provided in a less redundant form. For instance, suppose that a repeating character is compressed into one character, along with the number of repetitions. We show how to enhance our algorithm so that its running time may become sublinear with respect to the original redundant input representation. Our algorithms are based on a new algorithmic approach to two-dimensional string matching. Unlike existing approaches, the new approach does not work by reducing a two-dimensional problem into an one-dimensional problem. © 1992.
引用
收藏
页码:2 / 32
页数:31
相关论文
共 50 条
  • [1] EFFICIENT TREE PATTERN-MATCHING
    KOSARAJU, SR
    30TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, 1989, : 178 - 183
  • [2] EFFICIENT RANDOMIZED PATTERN-MATCHING ALGORITHMS
    KARP, RM
    RABIN, MO
    IBM JOURNAL OF RESEARCH AND DEVELOPMENT, 1987, 31 (02) : 249 - 260
  • [3] Efficient Exact Pattern-Matching in Proteomic Sequences
    Deusdado, Sergio
    Carvalho, Paulo
    DISTRIBUTED COMPUTING, ARTIFICIAL INTELLIGENCE, BIOINFORMATICS, SOFT COMPUTING, AND AMBIENT ASSISTED LIVING, PT II, PROCEEDINGS, 2009, 5518 : 1178 - +
  • [4] EFFICIENT PARALLEL IMPLEMENTATION OF RETE PATTERN-MATCHING
    MAHAJAN, M
    KUMAR, VKP
    COMPUTING SYSTEMS, 1990, 5 (03): : 187 - 192
  • [5] EFFICIENT RANDOMIZED PATTERN-MATCHING ALGORITHMS.
    Karp, Richard M.
    Rabin, Michael O.
    IBM Journal of Research and Development, 1987, 31 (02): : 249 - 260
  • [6] Efficient (δ, γ)-pattern-matching with don't cares
    National University of Colombia, Department of System Engineering and Industrial Engineering, Ciudad Universitaria, Avenida Carrera 30 No 45-03, Bogotá D.C., Colombia
    不详
    J. Comb. Math. Comb. Comp., 2009, (221-234):
  • [7] Efficient pattern-matching with don't cares
    Kalai, A
    PROCEEDINGS OF THE THIRTEENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2002, : 655 - 656
  • [9] ALGORITHMS FOR PATTERN-MATCHING
    DAVIES, G
    BOWSHER, S
    SOFTWARE-PRACTICE & EXPERIENCE, 1986, 16 (06): : 575 - 601
  • [10] PATTERN-MATCHING IN TREES
    HOFFMANN, CM
    ODONNELL, MJ
    JOURNAL OF THE ACM, 1982, 29 (01) : 68 - 95