Skip to content

Uses Ukkonen's algorithm to make suffix arrays in linear time

Notifications You must be signed in to change notification settings

GreenYellowLight/LinearTimeSuffixArray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Linear Time Suffix Array Creator

Creates the suffix array of a string in linear time (in terms of string length) using Ukkonen's algorithm. Expects the string to end in the unique chracter '$' and accepts characters with an ord value of less than 128 (eg accepts all ascii but not unicode).

A suffix array of a string is the lexographical order of each suffix of a string. Using "banana$" as an example:

6 : $

5 : a$

3 : ana$

1 : anana$

0 : banana$

4 : na$

2 : nana$

.: [6, 5, 3, 1, 0, 4, 2] is the suffix array.

About

Uses Ukkonen's algorithm to make suffix arrays in linear time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages