谢谢,接下来再仔细回看一下这一段,终于明白是啥意思了
The longest common substrings of a set of strings can be found by building a generalised suffix tree for the strings, and then finding the deepest internal nodes which have leaf nodes from all the strings in the subtree below it. The figure on the right is the suffix tree for the strings "ABAB", "BABA" and "ABBA", padded with unique string terminators, to become "ABAB$0", "BABA$1" and "ABBA$2". The nodes representing "A", "B", "AB" and "BA" all have descendant leaves from all of the strings, numbered 0, 1 and 2.
那接下来整个难点就是构建一棵GST和如何搜索
谢谢,自己再查了下资料,大致了解了
那接下来通过suffix tree来获得LCS,也就是这句话:
The nodes representing "A", "B", "AB" and "BA" all have descendant leaves from all of the strings, numbered 0, 1 and 2.
怎么理解呢(貌似根本就无AB这个节点)
谢谢,这个我看过,现在的关键可能是不清楚为什么他要这样构造suffix tree
他里面是这样提到这棵树的构造的:
The figure on the right is the suffix tree for the strings "ABAB", "BABA" and "ABBA", padded with unique string terminators, to become "ABAB$0", "BABA$1" and "ABBA$2".
先不说其它两个,就说ABBA在树中的位置就很奇怪
The longest common substrings of a set of strings can be found by building a generalised suffix tree for the strings, and then finding the deepest internal nodes which have leaf nodes from all the strings in the subtree below it.
从那个链接抄下来的