Optimal Exact and Fast Approximate Two Dimensional Pattern Matching Allowing Rotations

  • Authors:
  • Kimmo Fredriksson;Gonzalo Navarro;Esko Ukkonen

  • Affiliations:
  • -;-;-

  • Venue:
  • CPM '02 Proceedings of the 13th Annual Symposium on Combinatorial Pattern Matching
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

We give fast filtering algorithms to search for a 2- dimensional pattern in a 2-dimensional text allowing any rotation of the pattern. We consider the cases of exact and approximate matching under several matching models, improving the previous results. For a text of size n脳n characters and a pattern of size m脳m characters, the exact matching takes average time O(n2 log m/m2), which is optimal. If we allow k mismatches of characters, then our best algorithm achieves O(n2k log m/m2) average time, for reasonable k values. For large k, we obtain an O(n2k3/2驴log m/m) average time algorithm. We generalize the algorithms for the matching model where the sum of absolute differences between characters is at most k. Finally, we show how to make the algorithms optimal in the worst case, achieving the lower bound 驴(n2m3).