第一次接觸后綴樹應該是在某次省隊集訓,徐串大牛做的講座。
不過當時只是有了個印象。
現在發現這東東還是很好用的 @,@
http://www.aygfsteel.com/Files/zellux/SuffixT1withFigs.rar
On–line construction of suffix trees
by Esko Ukkonen
Key Words.
Linear time algorithm, suffix tree, suffix trie, suffix automaton, DAWG.
Abstract.
An on–line algorithm is presented for constructing the suffix tree for a given string in time linear in the length of the string. The new algorithm has the desirable property of processing the string symbol by symbol from left to right. It has always the suffix tree for the scanned part of the string ready. The method is developed as a linear–time version of a very simple algorithm for (quadratic size) suffix tries. Regardless of its quadratic worst-case this latter algorithm can be a good practical method when the string is not too long. Another variation of this method is shown to give in a natural way the well–known algorithms for constructing suffix automata (DAWGs).
不過當時只是有了個印象。
現在發現這東東還是很好用的 @,@
http://www.aygfsteel.com/Files/zellux/SuffixT1withFigs.rar
On–line construction of suffix trees
by Esko Ukkonen
Key Words.
Linear time algorithm, suffix tree, suffix trie, suffix automaton, DAWG.
Abstract.
An on–line algorithm is presented for constructing the suffix tree for a given string in time linear in the length of the string. The new algorithm has the desirable property of processing the string symbol by symbol from left to right. It has always the suffix tree for the scanned part of the string ready. The method is developed as a linear–time version of a very simple algorithm for (quadratic size) suffix tries. Regardless of its quadratic worst-case this latter algorithm can be a good practical method when the string is not too long. Another variation of this method is shown to give in a natural way the well–known algorithms for constructing suffix automata (DAWGs).