知识卡片

普通读书笔记卡 · 3707

后缀数组按字典序记录起点

理解等级:初级

长度为n的文本有n个非空后缀。

后缀数组SA按字典序存放这些后缀的起始位置;SA[i]=j表示第i小的后缀是T[j:]。

它用位置数组表达排序结果,不复制每个后缀。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第32章 字符串匹配 · 查看原书依据

      A suffix array is simply a compact way to represent the lexicographically sorted order of all n suffixes of a length-n text. Given a text T[1:n], let T[i:] denote the suffix T[i:n]. The suffix array SA[1:n] of T is defined such that if SA[i] = j, then T[j:] is the ith suffix of T in lexicographic order.3 That is, the ith suffix of T in lexicographic order is T[

    参考来源

    - 位置:《算法导论(第4版)》第32章《字符串匹配》(OEBPS/chapter032.xhtml,文本字符[60000,65000))。 - 结论依据:原文第32.5节后缀数组、LCP和倍增构造的定义、示例或正确性推导。 - 原始内容:A suffix array is simply a compact way to represent the lexicographically sorted order of all n suffixes of a length- n text. Given a text T [1: n ], let T [ i :] denote the suffix T [ i : n ]. The suffix array SA [1: n ] of T is defined such that if SA [ i ] = j , then T [ j :] is the i th suffix of T in lexicographic order. 3 That is, the i th suffix of T in lexicographic order is T [