Implementation of string pattern matching using Suffix Array and LCP(-LR)
问题 During the last weeks I tried to figure out how to efficiently find a string pattern within another string. I found out that for a long time, the most efficient way would have been using a suffix tree. However, since this data structure is very expensive in space, I studied the use of suffix arrays further (which use far less space). Different papers such as "Suffix Arrays: A new method for on-line string searches" (Manber & Myers, 1993) state, that searching for a substring can be realised