Efficient Pattern Matching with Scaling

A. Amihood, G. M. Landau, U. Vishkin

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

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, Full-size image (<1 K) 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.
Original languageAmerican English
Title of host publication1st Annual ACM-SIAM Symposium On Discrete Algorithms (SODA)
StatePublished - 1990

Bibliographical note

Place of conference:San Francisco, CA

Fingerprint

Dive into the research topics of 'Efficient Pattern Matching with Scaling'. Together they form a unique fingerprint.

Cite this