Files

144 lines
14 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1040 285" width="1040" height="285"><title>KMP 失配时利用前后缀移动模式串</title><defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" fill="#416687"/></marker></defs><rect width="100%" height="100%" fill="white"/><g font-family="Microsoft YaHei,Arial,sans-serif" fill="#263c52" stroke-linecap="round">
<rect x="55" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="71.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="87" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="103.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="119" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="135.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">c</text>
<rect x="151" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="167.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="183" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="199.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">c</text>
<rect x="215" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="231.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="247" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="263.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="279" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="295.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="311" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="327.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="343" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="359.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">c</text>
<rect x="375" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="391.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="407" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="423.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="55" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="71.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">0</text>
<rect x="87" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="103.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">1</text>
<rect x="119" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="135.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">2</text>
<rect x="151" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="167.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">3</text>
<rect x="183" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="199.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">4</text>
<rect x="215" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="231.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">5</text>
<rect x="247" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="263.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">6</text>
<rect x="279" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="295.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">7</text>
<rect x="311" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="327.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">8</text>
<rect x="343" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="359.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">9</text>
<rect x="375" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="391.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">10</text>
<rect x="407" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="423.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">11</text>
<text x="71.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="167.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="103.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<text x="199.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<text x="135.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">c</text>
<text x="231.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">c</text>
<text x="167.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="263.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="199.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<text x="295.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<rect x="55" y="87" width="32" height="36" stroke="#67859e" fill="none" stroke-width="1.5"/>
<rect x="151" y="87" width="32" height="36" stroke="#67859e" fill="none" stroke-width="1.5"/>
<rect x="151" y="20" width="32" height="36" stroke="#67859e" fill="none" stroke-width="1.5"/>
<path d="M71.0 80L167.0 61" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<text x="199.0" y="139" text-anchor="middle" dominant-baseline="central" font-size="26">×</text>
<text x="265" y="260" text-anchor="middle" dominant-baseline="central" font-size="19">(a)</text>
<text x="55" y="157" font-size="15">被匹配串与编号</text>
<rect x="570" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="586.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="602" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="618.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="634" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="650.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="666" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="682.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="698" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="714.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="730" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="746.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="762" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="778.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="794" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="810.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="826" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="842.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="858" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="874.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="890" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="906.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="922" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="938.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="954" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="970.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">c</text>
<rect x="986" y="165" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="1002.0" y="181.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="570" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="586.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">0</text>
<rect x="602" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="618.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">1</text>
<rect x="634" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="650.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">2</text>
<rect x="666" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="682.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">3</text>
<rect x="698" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="714.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">4</text>
<rect x="730" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="746.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">5</text>
<rect x="762" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="778.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">6</text>
<rect x="794" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="810.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">7</text>
<rect x="826" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="842.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">8</text>
<rect x="858" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="874.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">9</text>
<rect x="890" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="906.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">10</text>
<rect x="922" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="938.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">11</text>
<rect x="954" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="970.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">12</text>
<rect x="986" y="197" width="32" height="32" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="1002.0" y="213.0" text-anchor="middle" dominant-baseline="central" font-size="18">13</text>
<text x="586.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="650.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="618.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<text x="682.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<text x="650.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="714.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="682.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<text x="746.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<text x="714.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="778.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">a</text>
<text x="746.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">c</text>
<text x="810.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">c</text>
<text x="778.0" y="107" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<text x="842.0" y="40" text-anchor="middle" dominant-baseline="central" font-size="20">b</text>
<rect x="570" y="87" width="96" height="36" stroke="#67859e" fill="none" stroke-width="1.5"/>
<rect x="634" y="87" width="96" height="36" stroke="#67859e" fill="none" stroke-width="1.5"/>
<rect x="634" y="20" width="96" height="36" stroke="#67859e" fill="none" stroke-width="1.5"/>
<path d="M618.0 80L682.0 61" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<text x="746.0" y="139" text-anchor="middle" dominant-baseline="central" font-size="26">×</text>
<text x="780" y="260" text-anchor="middle" dominant-baseline="central" font-size="19">(b)</text>
<text x="570" y="157" font-size="15">被匹配串与编号</text>
</g></svg>