Skip to main content

An index data structure for matrices, with applications to fast two-dimensional pattern matching

  • Conference paper
  • First Online:
Algorithms and Data Structures (WADS 1993)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 709))

Included in the following conference series:

Abstract

We describe a new data structure, the submatrix trees (strees for short). It is a forest of compacted patricia trees representing all sub-matrices of a given matrix TEXT. It can be efficiently built and used to answer quickly a wide variety of queries about TEXT. It can be thought of as a generalization to matrices of the suffix tree of a string [14]. We also introduce the notion of an abstract index data structure for matrices, of which the s-trees is an incarnation, and investigate the inherent space and time needed to build it. We show that the s-trees are optimal for space and within a log factor optimal for time.

On Leave from University of Palermo, ITALY

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. A.V. Aho, J.E. Hopcroft, and J.D. Ullman. The Design and Analysis of Computer Algorithms. Addison-Wesley, Reading, MA., 1974.

    Google Scholar 

  2. A. Amir, G. Benson, and M. Farach. Alphabet independent two dimensional matching. In Proc. 34th Symposium on Theory of Computing, pages 59–68. ACM, 1992.

    Google Scholar 

  3. A. Amir, M. Farach, R. Idury, J. La Poutre, and A. Schaffer. Improved dynamic dictionary matching. In Proc. Fourth Symposium on Discrete Algorithms, pages 392–401. ACM-SIAM, 1993.

    Google Scholar 

  4. T.J. Baker. A technique for extending rapid exact match string matching to arrays of more than one dimension. SIAM J. on Computing, 7:533–541, 1978.

    Article  Google Scholar 

  5. R.S. Bird. Two dimensional pattern matching. Information Processing Letters, 6:168–170, 1978.

    Google Scholar 

  6. N. G. de Bruijn. A combinatorial problem. Nederl. Akad. Wetensch. Proc., 49:758–764, 1946.

    Google Scholar 

  7. Z. Galil and K. Park. A truly alphabet independent two-dimensional pattern matching algorithm. In Proc. 33th Symposium on Foundations of Computer Science, pages 247–256. IEEE, 1992.

    Google Scholar 

  8. R. Giancarlo. The suffix tree of a square matrix, with applications. In Proc. Fourth Symposium on Discrete Algorithms, pages 402–411. ACM-SIAM, 1993.

    Google Scholar 

  9. G.H. Gonnet. Efficient searching of text and pictures-Extended Abstract. Technical report, University Of Waterloo-ED-88-02, 1988.

    Google Scholar 

  10. I. Idury and A. Schaffer. Multiple matching of rectangular patterns. In Proc. 25th Symposium on Theory of Computing — to appear. ACM, 1993.

    Google Scholar 

  11. R. Jain. Workshop report on visual information systems. Technical report, National Science Foundation, 1992.

    Google Scholar 

  12. D.E. Knuth. The Art of Computer Programming, VOL. 3: Sorting and Searching. Addison-Wesley, Reading, MA., 1973.

    Google Scholar 

  13. U. Manber and E. Myers. Suffix arrays: A new method for on-line string searches. In Proc. First Symposium on Discrete Algorithms, pages 319–327. ACM-SIAM, 1990.

    Google Scholar 

  14. E.M. McCreight. A space economical suffix tree construction algorithm. J. of ACM, 23:262–272, 1976.

    Article  Google Scholar 

  15. A. Rosenfeld and A.C. Kak. Digital Picture Processing. Academic Press, 1982.

    Google Scholar 

  16. D. Sheinwald, A. Lempel, and J. Ziv. Compression of pictures by finite state encoders. In R.M. Capocelli, editor, Sequences: Combinatorics, Compression, Security and Transmission, pages 326–347, Berlin, 1990. Springer-Verlag.

    Google Scholar 

  17. J. A. Storer. Lossy on-line dynamic data compression. In R.M. Capocelli, editor, Sequences: Combinatorics, Compression, Security and Transmission, pages 348–357, Berlin, 1990. Springer-Verlag.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Frank Dehne Jörg-Rüdiger Sack Nicola Santoro Sue Whitesides

Rights and permissions

Reprints and permissions

Copyright information

© 1993 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Giancarlo, R. (1993). An index data structure for matrices, with applications to fast two-dimensional pattern matching. In: Dehne, F., Sack, JR., Santoro, N., Whitesides, S. (eds) Algorithms and Data Structures. WADS 1993. Lecture Notes in Computer Science, vol 709. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-57155-8_260

Download citation

  • DOI: https://doi.org/10.1007/3-540-57155-8_260

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-57155-1

  • Online ISBN: 978-3-540-47918-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics