An Index for Two Dimensional String Matching Allowing Rotations

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

  • Affiliations:
  • -;-;-

  • Venue:
  • TCS '00 Proceedings of the International Conference IFIP on Theoretical Computer Science, Exploring New Frontiers of Theoretical Informatics
  • Year:
  • 2000

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present an index to search a two-dimensional pattern of size m × m in a two-dimensional text of size n × n, even when the pattern appears rotated in the text. The index is based on (path compressed) tries. By using O(n2) (i.e. linear) space the index can search the pattern in O((logσ n)5/2) time on average, where σ is the alphabet size. We also consider various schemes for approximate matching, for which we obtain either O(polylogσ n) or O(n2λ) search time, where λ O(n2(logσ n)3/2) yields an average time of O(logσ n) for the simplest matching model. The algorithms have applications e.g. in content based information retrieval from image databases.