Content deleted Content added
→Applications: explain o(m+log n) algorithm |
→Applications: explain o(m+log n) algorithm |
||
Line 36:
* Find the last suffix lying between ''a'' and ''adabra'' whose second character is ''b'' (''abracadabra'')
* Find the first suffix lying between ''abra'' and ''abracadabra'' whose third character is ''r''
* Find the
* Keep doing the same until the range restricts to a single suffix (in this case at ''abrac'')
* Check the remaining characters of the suffix (''adabra'') match the remaining characters of the requested string (''ad'')
|