Title: Suffix Trees
1Suffix Trees
- ALGGEN Algorithmics and genetics group
- Dep. Llenguatges i Sistemes InformĂ tics
- Universitat Politècnica de Catalunya
Dr. Xavier Messeguer
http//www.lsi.upc.es/alggen
2Suffix trees
Given string ababaas
Suffixes
3 abaas
1 ababaas
4 baas
2 babaas
What kind of queries?
3Queries on Suffix trees
- Does the sequence ababaas contain any ocurrence
of patterns abab, aab, and ab?
- Find repeats within the sequence ababaas.
4Quadratic Insertion algorithm
Given the string ababaabbs
5Quadratic Insertion algorithm
Given the string ababaabbs
ababaabbs,1
babaabbs,2
6Quadratic Insertion algorithm
Given the string ababaabbs
ababaabbs,1
babaabbs,2
7Quadratic Insertion algorithm
Given the string ababaabbs
babaabbs,2
8Quadratic Insertion algorithm
Given the string ababaabbs
babaabbs,2
9Quadratic Insertion algorithm
Given the string ababaabbs
10Quadratic Insertion algorithm
Given the string ababaabbs
ba
baabbs,2
11Quadratic Insertion algorithm
Given the string ababaabbs
ba
baabbs,2
12Quadratic Insertion algorithm
Given the string ababaabbs
ba
baabbs,2
13Quadratic Insertion algorithm
Given the string ababaabbs
ba
ba
baabbs,2
14Quadratic Insertion algorithm
Given the string ababaabbs
ba
baabbs,2
15Quadratic Insertion algorithm
Given the string ababaabbs
ba
baabbs,2
16Quadratic Insertion algorithm
Given the string ababaabbs
17Quadratic Insertion algorithm
Given the string ababaabbs
18Quadratic Insertion algorithm
Given the string ababaabbs
19Quadratic Insertion algorithm
Given the string ababaabbs
ba
baabbs,2
20Definition of MUM
Matching
Unique
Maximal
21Search for MUMs
Given strings ababaabs and aabaat
1st Bottom-up traversal
(Through the tree)
List of UM aab,abaa,baa.
2nd Search for maximals
(through the list of UM)
MUMs aab,abaa.