Scaled matching refers to the problem of finding all locations in the text where the pattern, proportionally enlarged according to an arbitrary integral scale, appears. Scaled matching is an important problem that was originally inspired by problems in Vision. However, in real life, a more natural model of scaled matching is the real scaled matching model. Real scaled matching is an extended version of the scaled matching problem allowing arbitrary real-sized scales, approximated by some function, e.g., truncation. It has been shown that the scaled matching problem can be solved in linear time. However, even though there has been follow-up work on the problem, it remained an open question whether real scaled matching could be solved faster than the simple solution of O(nm) time, where n is the text size and m is the pattern size. Using a new approach we show how to solve the real scaled matching problem in linear time.
Bibliographical noteFunding Information:
∗Corresponding author. Email: firstname.lastname@example.org. Partially supported by NSF grant CCR-96-10170 and BSF grant 96-00509. 1Email: email@example.com. 2Email: firstname.lastname@example.org. Supported by the Ministry of Science, Israel, Eshkol Fellowship 061-1-97.