<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>数据结构 - 标签 - MartinLwx&#39;s Blog</title>
        <link>https://martinlwx.github.io/zh-cn/tags/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/</link>
        <description>数据结构 - 标签 - MartinLwx&#39;s Blog</description>
        <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>martinlwx@163.com (MartinLwx)</managingEditor>
            <webMaster>martinlwx@163.com (MartinLwx)</webMaster><copyright>&lt;a rel=&#34;license noopener&#34; href=&#34;https://creativecommons.org/licenses/by-nc-nd/4.0/&#34; target=&#34;_blank&#34;&gt;CC BY-NC-ND 4.0&lt;/a&gt;</copyright><lastBuildDate>Sun, 11 Jan 2026 22:23:22 &#43;0800</lastBuildDate><atom:link href="https://martinlwx.github.io/zh-cn/tags/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" rel="self" type="application/rss+xml" /><item>
    <title>后缀数组：快速查找模式串的所有出现位置</title>
    <link>https://martinlwx.github.io/zh-cn/suffix-array-tutorial/</link>
    <pubDate>Sun, 11 Jan 2026 22:23:22 &#43;0800</pubDate><author>
        <name>MartinLwx</name>
    </author><guid>https://martinlwx.github.io/zh-cn/suffix-array-tutorial/</guid>
    <description><![CDATA[<h2 id="后缀数组" class="headerLink">
    <a href="#%e5%90%8e%e7%bc%80%e6%95%b0%e7%bb%84" class="header-mark"></a>后缀数组</h2><p>从定义上来说，后缀数组（用 <code>sa</code> 表示）包含了字符串 <code>s</code> 所有后缀的起始索引，它是一个 <code>int</code> 数组，<code>sa[i]</code> 表示对应后缀的起始索引。注意后缀已经按照字典序排好。</p>
<p>以字符串 <code>fizzbuzz</code> 为例，它的后缀数组是 <code>4 0 1 5 7 3 6 2</code>，对应关系如下</p>]]></description>
</item></channel>
</rss>
