Jump to content

Ukkonen's algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Macha (talk | contribs) at 08:58, 14 February 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Ukkonen proposed a linear time algorithm for building Suffix trees.

Ukkonen's 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 it's "on-line" property; earlier algorithms proceeded backward from the last character. The naive implementation of this algorithm requires O(n^2) or even O(n^3) time, however applying several programming tricks reduces this to O(n) time.

See also

References