Click or drag to resize
SuffixArray Methods

The SuffixArray type exposes the following members.

Methods
  NameDescription
Public methodIndex
Returns the index into the original string of the ith smallest suffix. That is, text.Substring(sa.Index(i)) is the ith smallest suffix.
Public methodLcp
Returns the length of the longest common prefix of the Ith smallest suffix and the i-1st smallest suffix.
Public methodStatic memberMainTest
Demo test the SuffixArray data type.
Public methodRank
Returns the number of suffixes strictly less than the query string. We note that Rank(Select(i)) equals i for each i between 0 and N-1.
Public methodSelect
Returns the ith smallest suffix as a string.
Top
See Also