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 条
  • [11] APPROXIMATE PATTERN-MATCHING
    MANBER, U
    WU, S
    BYTE, 1992, 17 (12): : 281 - +
  • [12] ADAPTIVE PATTERN-MATCHING
    SEKAR, RC
    RAMESH, R
    RAMAKRISHNAN, IV
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 623 : 247 - 260
  • [13] FUZZY PATTERN-MATCHING
    CAYROL, M
    FARRENY, H
    PRADE, H
    KYBERNETES, 1982, 11 (02) : 103 - 116
  • [14] COMPILING PATTERN-MATCHING
    AUGUSTSSON, L
    LECTURE NOTES IN COMPUTER SCIENCE, 1985, 201 : 368 - 381
  • [15] ADAPTIVE PATTERN-MATCHING
    SEKAR, RC
    RAMESH, R
    RAMAKRISHNAN, IV
    SIAM JOURNAL ON COMPUTING, 1995, 24 (06) : 1207 - 1234
  • [16] A PATTERN-MATCHING SYSTEM
    SOMMERVILLE, I
    SOFTWARE-PRACTICE & EXPERIENCE, 1982, 12 (06): : 517 - 530
  • [17] STATISTICAL PATTERN-MATCHING
    RYALL, TG
    SANDOR, J
    PATTERN RECOGNITION LETTERS, 1989, 9 (03) : 163 - 168
  • [18] A PATTERN-MATCHING FRAMEWORK
    DURIEUX, JL
    SAINTJAMES, E
    RAIRO-INFORMATIQUE THEORIQUE ET APPLICATIONS-THEORETICAL INFORMATICS AND APPLICATIONS, 1988, 22 (02): : 173 - 226
  • [19] Efficient concise deterministic pattern-matching automata for ambiguous patterns
    Nedjah, N
    Mourelle, LD
    ACM SIGPLAN NOTICES, 2002, 37 (02) : 57 - 67
  • [20] EFFICIENT TWO-DIMENSIONAL PATTERN-MATCHING IN THE PRESENCE OF ERRORS
    KRITHIVASAN, K
    SITALAKSHMI, R
    INFORMATION SCIENCES, 1987, 43 (03) : 169 - 184