2025/10/18 by Kucherov, Gregory, Nekrich, Yakov
#Data Structures and Algorithms (cs.DS) #F.2.2 #FOS: Computer and information sciences
paper · doi:10.48550/arxiv.2510.16454
The normalized substring complexity δ of a string is defined as maxk \c[k]/k\, where c[k] is the number of distinct substrings of length k. This simply defined measure has recently attracted attention due to its established relationship to popular string compression algorithms. We consider the problem of computing δ online, when the string is provided from a stream. We present two algorithms solving the problem: one working in O(log n) amortized time per character, and the other in O(log3 n) worst-case time per character. To our knowledge, this is the first polylog-time online solution to this problem.