The rapidly growing need for analysis of digitized images in multimedia systems has lead to a variety of interesting problems in multidimensional pattern matching. One of the problems is that of scaled matching, finding all appearances of a pattern in a text in all discrete sizes. Another important problem is dictionary matching, quick search through a dictionary of preprocessed patterns in order to find all dictionary patterns that appear in the input text.
In this paper we provide a very simple algorithm for two dimensional scaled matching. Our algorithm is first linear-time alphabet-independent scaled matching algorithm. Its running time is O (∣T∣), where ∣T∣ is the text size, and is independent of ∣∑∣, the size of the alphabet.
Our technique generalizes to produce he first known algorithm for scaled dictionary matching. We can find all appearances of all dictionary patterns that appear in the input text in any discrete scale. The time bounds of our algorithm are equal to the best known exact (no scaling) two dimensional dictionary matching algorithms