Suffix-Array

Revision en1, by CreativeAss, 2018-05-05 22:18:04

We can find out the total number of distinct substrings in the string by substracting the LCP (longest common prefix) of the suffix at each index with the suffix at the previous index.

Can someone help me in proving this?

Thanks in advance

Happy Coding

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English CreativeAss 2018-05-05 22:18:04 274 Initial revision (published)