Maximal pair

Maximal pair

Given a string S of length n, a maximal pair is a tuple (p1,p2,l), such that S[p1..p1 + l − 1] = S[p2..p2 + l − 1], but S[p_1-1] \neq S[p_2-1] and S[p_1+l] \neq S[p_2+l]. A maximal repeat is a string represented by such tuple. A supermaximal repeat is a maximal repeat never occurring as a proper substring of another maximal repeat. Both maximal pairs, maximal repeats and supermaximal repeats can be found in Θ(n + z) time using a suffix tree [1], if there are z such structures.

Example

12345678901234
xabcyabcwabcyz

(2,6,3) and (6,10,3) are maximal pairs, but (2,10,3) is not, as y follows both substrings. abc and abcy are maximal repeats, but only abcy is a supermaximal repeat.

References

  1. ^ Gusfield, Dan (1999) [1997]. Algorithms on Strings, Trees and Sequences: Computer Science and Computational Biology. USA: Cambridge University Press. p. 143. ISBN 0-521-58519-8. 

Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Maximal independent set — This article is about the combinatorial aspects of maximal independent sets of vertices in a graph. For other aspects of independent vertex sets in graph theory, see Independent set (graph theory). For other kinds of independent sets, see… …   Wikipedia

  • Maximal element — In mathematics, especially in order theory, a maximal element of a subset S of some partially ordered set is an element of S that is not smaller than any other element in S. The term minimal element is defined dually. The notion of a maximal is… …   Wikipedia

  • Maximal munch — In computer programming and computer science, maximal munch or longest match is the principle that when creating some construct, as much of the available input as possible should be consumed. It is similar, though not entirely identical, to the… …   Wikipedia

  • Maximal intersecting family — A maximal intersecting family (MIF) of k sets (i.e., sets with cardinality k, where k is a natural number) is a family of sets Z satisfying the following: Every element of Z is a k set. Every pair of elements of Z has a nonempty intersection.… …   Wikipedia

  • Au-Pair — [oˈpɛʀ] (Kurzform für „Au pair Junge“ oder „Au pair Mädchen“) bezeichnet junge Erwachsene, oder in manchen Staaten auch Jugendliche, die gegen Verpflegung, Unterkunft und Taschengeld bei einer Gastfamilie im In oder Ausland tätig sind, um im… …   Deutsch Wikipedia

  • Au Pair — [oˈpɛʀ] (Kurzform für „Au pair Junge“ oder „Au pair Mädchen“) bezeichnet junge Erwachsene, oder in manchen Staaten auch Jugendliche, die gegen Verpflegung, Unterkunft und Taschengeld bei einer Gastfamilie im In oder Ausland tätig sind, um im… …   Deutsch Wikipedia

  • Au pair — [oˈpɛʀ] (Kurzform für „Au pair Junge“ oder „Au pair Mädchen“) bezeichnet junge Erwachsene, oder in manchen Staaten auch Jugendliche, die gegen Verpflegung, Unterkunft und Taschengeld bei einer Gastfamilie im In oder Ausland tätig sind, um im… …   Deutsch Wikipedia

  • Gelfand pair — In mathematics, the expression Gelfand pair refers to a pair ( G ,  K ) consisting of a group G and a subgroup K that satisfies a certain property on restricted representations.When G is a finite group the simplest definition is, roughly speaking …   Wikipedia

  • Au-pair — [oˈpɛʀ] (Kurzform für „Au pair Junge“ oder „Au pair Mädchen“) bezeichnet junge Erwachsene, oder in manchen Staaten auch Jugendliche, die gegen Verpflegung, Unterkunft und Taschengeld bei einer Gastfamilie im In oder Ausland tätig sind, um im… …   Deutsch Wikipedia

  • Partage de fichiers en pair à pair — Un partage de fichiers en pair à pair est un réseau qui permet de partager des fichiers entre plusieurs ordinateurs connectés entre eux par Internet. Chaque internaute pouvant être serveur et receveur d’un autre internaute. Ils forment ainsi des… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”