Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesLast volumeSectionsSpecial issuesAuthors
About
The journalIndexing
Boards
Publish
For authorsEthical charter
Submit
Discrete Mathematics & Theoretical Computer Science logo
Contact
|
Credits
eISSN 1365-8050
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. Optimal Prefix and S ...
Conference paper

Optimal Prefix and Suffix Queries on Texts

Maxime Crochemore ORCID (1) (2), Costas S. Iliopoulos (2), M. Sohel Rahman (2)
(1) Laboratoire d'Informatique Gaspard-Monge
(2) Department of Computer Science [London]
Download article
Open on HAL
Imported on
May 10, 2017
Published on
December 31, 2006
Last modified on
March 31, 2025
Volume
DMTCS Proceedings vol. AH, 2007 Conference on Analysis of Algorithms (AofA 07)
Proceedings
DOI
10.46298/dmtcs.3541
License
https://about.hal.science/hal-authorisation-v1
Indicators
582
Views
852
Downloads

Optimal Prefix and Suffix Queries on Texts

Maxime Crochemore ORCID (1) (2), Costas S. Iliopoulos (2), M. Sohel Rahman (2)
(1) Laboratoire d'Informatique Gaspard-Monge
(2) Department of Computer Science [London]
Abstract
In this paper, we study a restricted version of the position restricted pattern matching problem introduced and studied by Mäkinen and Navarro [Position-Restricted Substring Searching, LATIN 2006]. In the problem handled in this paper, we are interested in those occurrences of the pattern that lies in a suffix or in a prefix of the given text. We achieve optimal query time for our problem against a data structure which is an extension of the classic suffix tree data structure. The time and space complexity of the data structure is dominated by that of the suffix tree. Notably, the (best) algorithm by Mäkinen and Navarro, if applied to our problem, gives sub-optimal query time and the corresponding data structure also requires more time and space.
Keywords
  • [INFO.INFO-DS]Computer Science [cs]/Data Structures and Algorithms [cs.DS]
  • [INFO.INFO-DM]Computer Science [cs]/Discrete Mathematics [cs.DM]
  • [MATH.MATH-CO]Mathematics [math]/Combinatorics [math.CO]
  • [INFO.INFO-CG]Computer Science [cs]/Computational Geometry [cs.CG]
  • algorithms
  • pattern matching
  • index
  • data structures
  • suffix trees
Cited by

Source: OpenCitations

  • Cache Oblivious Algorithms for the RMQ and the RMSQ Problems

    Mathematics in Computer Science

    Authors : Masud Hasan, Tanaeem M. Moosa, M. Sohel Rahman ORCID

    Journal reference : Volume 3, 2010, pp. 433-442

    DOI : 10.1007/s11786-010-0037-2
Preview
Loading PDF preview...