Files

52 lines
5.2 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 240" width="1040" height="240"><title>前缀函数的递推与失配回退</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="15" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="36.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="57" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="78.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="99" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="120.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="141" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="162.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<text x="208" y="91" text-anchor="middle" dominant-baseline="central" font-size="19">…</text>
<rect x="275" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="296.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="317" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="338.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="359" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="380.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="401" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="422.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<text x="100" y="35" text-anchor="middle" dominant-baseline="central" font-size="21">bᵢ₋₁</text>
<text x="359" y="35" text-anchor="middle" dominant-baseline="central" font-size="21">bᵢ₋₁ = 3</text>
<text x="405" y="142" text-anchor="middle" dominant-baseline="central" font-size="18">i</text>
<text x="120" y="155" text-anchor="middle" dominant-baseline="central" font-size="21">bᵢ</text>
<text x="355" y="180" text-anchor="middle" dominant-baseline="central" font-size="20">bᵢ = bᵢ₋₁ + 1 = 4</text>
<text x="250" y="222" text-anchor="middle" dominant-baseline="central" font-size="19">(a)</text>
<rect x="535" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="556.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="577" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="598.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="619" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="640.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="661" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="682.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="703" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="724.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">c</text>
<text x="770" y="91" text-anchor="middle" dominant-baseline="central" font-size="19">…</text>
<rect x="795" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="816.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="837" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="858.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="879" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="900.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">a</text>
<rect x="921" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="942.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">b</text>
<rect x="963" y="70" width="42" height="42" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="984.0" y="91.0" text-anchor="middle" dominant-baseline="central" font-size="18">d</text>
<text x="620" y="35" text-anchor="middle" dominant-baseline="central" font-size="21">bᵢ₋₁</text>
<text x="879" y="35" text-anchor="middle" dominant-baseline="central" font-size="21">bᵢ₋₁</text>
<text x="925" y="142" text-anchor="middle" dominant-baseline="central" font-size="18">i</text>
<path d="M907 140L670 140" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<text x="810" y="180" text-anchor="middle" dominant-baseline="central" font-size="20">回退到 b[bᵢ₋₁−1]</text>
<text x="770" y="222" text-anchor="middle" dominant-baseline="central" font-size="19">(b)</text>
</g></svg>