In mathematics you don't understand things, you just get used to them.

标签 strings 下的文章

学了五年 KMP拜谢 oi-wiki。字符串下标从 $0$ 开始,$s_{[l, r]}$ 闭区间子串,定义 $\displaystyle \pi_i = \max_{j \in [0, i]}...

Part. 1 基本信息Part. 1-1 SAM 的构成。SAM 由两个东西构成,一个是一个 DAWG,还有一棵外向树,叫 parent tree。比如,给你一个字符串 $S=\sf abba...