Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In 1995, Esko
Ukkonen proposed a linear-time, online algorithm for constructing suffix
trees that has come to be known as Ukkonen's algorithm. The algorithm
begins with an implicit suffix tree containing the first character of
the string. Then it steps through the string adding successive
characters until the tree is complete. This order addition of characters
gives Ukkonen's algorithm its "on-line" property; earlier algorithms
proceeded backward from the last character. The naive implementation for
generating a suffix tree requires O(n2) or even O(n3) time, where n is
the length of the string. By exploiting a number of algorithmic
techniques, Ukkonen reduced this to O(n) (linear) time.