Is suffix array actually usable in 914F?

Revision en2, by i_love_sqrt_decomp, 2025-05-09 02:10:22

In the problem 914F - Substrings in a String, the suffix array construction constant is rather big. The update queries can reach nearly 2 seconds in runtime for $$$O(n\sqrt{n})$$$ operations. The $$$O(n)$$$ suffix array algorithm I used is only a bit faster than $$$O(n\log{n})$$$ one used normally. Is there actually a fast suffix array algorithm that works for small arrays like these?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English i_love_sqrt_decomp 2025-05-09 02:10:22 4
en1 English i_love_sqrt_decomp 2025-05-09 02:07:49 398 Initial revision (published)