Is suffix array actually usable in 914F?

Правка en1, от i_love_sqrt_decomp, 2025-05-09 02:07:49

In the problem 914F - Substrings in a String, the suffix array construction constant is rather big. The update queries can reach nearly 3 seconds in runtime for $$$O(n\sqrt{n})$$$ operations. The $$$O(n)$$$ suffix array algorithm 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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский i_love_sqrt_decomp 2025-05-09 02:10:22 4
en1 Английский i_love_sqrt_decomp 2025-05-09 02:07:49 398 Initial revision (published)