Content deleted Content added
m copyedit: leafs→leaves |
|||
Line 213:
Let <math>ST_{i}</math> be the partial suffix tree for <math>0\leq i \leq n</math>. Further let <math>d(v)</math> be the length of the concatenation of all path labels from the root of <math>ST_i</math> to node <math>v</math>.
[[File:Constructing the suffix tree of banana based on the suffix array and the LCP array - Case 1.pdf|thumb|400px|Case 1 (<math>d(v)=H[i+1]</math>): Suppose the suffixes <math>a$</math>, <math>ana$</math>, <math>anana$</math> and <math>banana$</math> of the string <math>S=banana$</math> are already added to the suffix tree. Then the suffix <math>na$</math> is added to the tree as shown in the picture. The ''rightmost'' path is highlighted in red.]]
Start with <math>
We need to distinguish two cases:
|