Efficient Algorithms to Compute Closed Substrings
Jain, Mhaskar · cs.DS · 2026-09-05 · 原文
A closed string u is either of length one or contains a border that occurs only as a prefix and as a suffix in u and nowhere else within u. In this paper, we present fast \mathcal{O}(n\log n) time algorithms to compute all \mathcal{O}(n^2) closed substrings by introducing a compact representation for all closed substrings of a string $ w[1..n]$, using only \mathcal{O}(n \log n) space. These simple and space-efficient algorithms also compute maximal closed strings. Furthermore, we compare the performance of these algorithms and identify classes of strings where each performs best. Finally, we show that the exact number of MCSs (M(f_n)) in a Fibonacci word f_n , for n \geq 5, is \approx \left(1 + \frac{1}{ϕ^2}\right) F_n \approx 1.382 F_n, where $ ϕ$ is the golden ratio.
讲义
讲义·推断 依据「原文」自动生成的结构化摘要(推断),非原文表述;以原文为准。
1. 人话版
A closed string u is either of length one or contains a border that occurs only as a prefix and as a suffix in u and nowhere else within u.
In this paper, we present fast \mathcal{O}(n\log n) time algorithms to compute all \mathcal{O}(n^2) closed substrings by introducing a compact representation for all closed substrings of a string $ w[1..n]$, using only \mathcal{O}(n \log n) space.
2. 领域脉络
本文类目:cs.DS,属于其所在研究脉络的最新进展。
3. 机制拆解
These simple and space-efficient algorithms also compute maximal closed strings.
Furthermore, we compare the performance of these algorithms and identify classes of strings where each performs best.
4. 证据与数字
Finally, we show that the exact number of MCSs (M(f_n)) in a Fibonacci word f_n , for n \geq 5, is \approx \left(1 + \frac{1}{ϕ^2}\right) F_n \approx 1.382 F_n, where $ ϕ$ is the golden ratio.
5. 反例与边界
摘要未声明局限与反例——这是需要警惕的信号,精读时先问边界。
6. 跨领域连接与意外收获
思考本文机制能否迁移到你正在跟进的问题。
7. 可复用方法
把本文机制与你手头项目对照,找一个两周内能验证的最小实验。
8. 术语表
精读时把不熟的术语记入此处,作为下次回忆的锚点。