Work

Efficient Substring Traversal with Suffix Arrays

Year: 2001
Type: report
Abstract: The substring traversal problem is the problem of enumerating all branching substrings appearing in a given text. Although this problem is easily solvable with the suffix tree of McCreight (1976), a space efficient and practically fast solution is important. We devise a simple and efficient algorithm that simulates the traversal of the suffix tree for a given text with the suJfix' arra!l of Manbet and Meyers (1993) and Gonnet, Baeza-Yates, Snider (1992) The algorithm runs in O(n) time and 5 bulk I/O with - the suffix array and an additional structure called the height arra!l, while the naive algorithm using binary search on the suffix array requires O(n 2) time in the worst case. The space requirement 7N bytes of our algorithm is smaller than 15N bytes of the traversal algorithm with the suffix tree. A linear time algerthru for computing the height array from the suffix and the height arrays is also presented. Computer experiments on real datasets showed that our traversal algorithm with the suffix array is an order of magnitude faster than the naive simulation method and comparable to the traversal algorithm with the suffix tree.
Authors: Toru Kasai, Hiroki Arimura, Setsuo Arikawa
Institution: Kyushu University
Language: English
Open Access status: green
OpenAlex ID: W2300102517
Cites: 9
Cited by: 9
Related to: 10