Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Suffix array
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Constructing the lcp-interval == For a suffix array of S, the lcp-interval associated with the corresponding node of suffix tree of S can be defined as: {{quote|1= Interval [i,..j], 0 β€ i β€ j β€ n is an lcp-interval of lcp-value, if # lcptab[i] < l, # lcptab[k] β₯ l for all i + 1 β€ k β€ j, # lcptab[k] = l for some i + 1 β€ k β€ j if i β j and l = n β i + 1 if i = j, # lcptab[j + 1] < l. }} The length of the longest common prefix of pos[i β 1] and pos[i] is stored in lcp[i],where 2 β€ i β€ n. The lcp-interval portrays the same parent-child relationship as that among the associated nodes in the suffix tree of S.This shows that if the corresponding node of [i..j] is a child of the corresponding node of [k..l], a lcp-interval [i..j] is a child interval of another lcp-interval [k..l]. If [k..l] is a child interval of [i..j], a lcp-interval [i..j] is the parent interval of a lcp-interval [k..l].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)