I'm working on suffix tree algorithm in bioinformatics. I want know this , is suffix tree unique ?
for example ,
String str = "xabaxe"
This string or another example strings have alternative suffix tree?
I'm working on suffix tree algorithm in bioinformatics. I want know this , is suffix tree unique ?
for example ,
String str = "xabaxe"
This string or another example strings have alternative suffix tree?
It is always unique. Each path from the root to a leaf corresponds to a suffix. A tree is uniquely determined by all paths from the root to leaves because the degree of any interior node is at least 2(by the definition of a suffix tree). But suffices are uniquely determined by a string. Thus, there is one and only one suffix tree for any string.