Finding Maximal Pairs with Bounded Gap
DOI:
https://doi.org/10.7146/brics.v6i12.20069Resumé
A pair in a string is the occurrence of the same substring twice. A pairis maximal if the two occurrences of the substring cannot be extended to
the left and right without making them different. The gap of a pair is
the number of characters between the two occurrences of the substring.
In this paper we present methods for finding all maximal pairs under
various constraints on the gap. In a string of length n we can find all
maximal pairs with gap in an upper and lower bounded interval in time
O(n log n + z) where z is the number of reported pairs. If the upper
bound is removed the time reduces to O(n+z). Since a tandem repeat is
a pair where the gap is zero, our methods can be seen as a generalization
of finding tandem repeats. The running time of our methods equals the
running time of well known methods for finding tandem repeats.
Downloads
Publiceret
1999-01-12
Citation/Eksport
Brodal, G. S., Lyngsø, R. B., Pedersen, C. N. S., & Stoye, J. (1999). Finding Maximal Pairs with Bounded Gap. BRICS Report Series, 6(12). https://doi.org/10.7146/brics.v6i12.20069
Nummer
Sektion
Artikler
Licens
Authors who publish with this journal agree to the following terms:- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).