Files

115 lines
11 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 1010 510" width="1010" height="510"><title>ST 表的预处理:合并两个等长区间</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="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="37.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">i</text>
<rect x="59" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="81.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">2</text>
<rect x="103" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="125.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">3</text>
<rect x="147" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="169.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">4</text>
<rect x="191" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="213.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">5</text>
<rect x="15" y="59" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="37.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">aᵢ</text>
<rect x="59" y="59" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="81.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">2</text>
<rect x="103" y="59" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="125.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">5</text>
<rect x="147" y="59" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="169.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">1</text>
<rect x="191" y="59" width="44" height="44" stroke="#67859e" fill="#c7d6e6" stroke-width="1.5"/>
<text x="213.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">6</text>
<rect x="260" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="282.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">i</text>
<rect x="304" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="326.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">6</text>
<rect x="348" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="370.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">7</text>
<rect x="392" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="414.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">8</text>
<rect x="436" y="15" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="458.0" y="37.0" text-anchor="middle" dominant-baseline="central" font-size="18">9</text>
<rect x="260" y="59" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="282.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">aᵢ</text>
<rect x="304" y="59" width="44" height="44" stroke="#67859e" fill="#c7d6e6" stroke-width="1.5"/>
<text x="326.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">8</text>
<rect x="348" y="59" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="370.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">4</text>
<rect x="392" y="59" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="414.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">1</text>
<rect x="436" y="59" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="458.0" y="81.0" text-anchor="middle" dominant-baseline="central" font-size="18">1</text>
<rect x="50" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="72.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">i</text>
<rect x="94" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="116.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">2</text>
<rect x="138" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="160.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">3</text>
<rect x="182" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="204.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">4</text>
<rect x="226" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="248.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">5</text>
<rect x="270" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="292.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">6</text>
<rect x="314" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="336.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">7</text>
<rect x="358" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="380.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">8</text>
<rect x="402" y="145" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="424.0" y="167.0" text-anchor="middle" dominant-baseline="central" font-size="18">9</text>
<rect x="50" y="189" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="72.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">aᵢ</text>
<rect x="94" y="189" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="116.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">2</text>
<rect x="138" y="189" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="160.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">5</text>
<rect x="182" y="189" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="204.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">1</text>
<rect x="226" y="189" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="248.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">6</text>
<rect x="270" y="189" width="44" height="44" stroke="#67859e" fill="#c7d6e6" stroke-width="1.5"/>
<text x="292.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">8</text>
<rect x="314" y="189" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="336.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">4</text>
<rect x="358" y="189" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="380.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">1</text>
<rect x="402" y="189" width="44" height="44" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="424.0" y="211.0" text-anchor="middle" dominant-baseline="central" font-size="18">1</text>
<text x="740" y="55" text-anchor="middle" dominant-baseline="central" font-size="22">f[2, 2] = 6,f[6, 2] = 8</text>
<path d="M740 85L740 130" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<text x="740" y="185" text-anchor="middle" dominant-baseline="central" font-size="22">f[2, 3] = max(6, 8) = 8</text>
<text x="500" y="260" text-anchor="middle" dominant-baseline="central" font-size="19">(a)</text>
<rect x="15" y="315" width="92" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="61.0" y="342" text-anchor="middle" dominant-baseline="central" font-size="16">i</text>
<rect x="107" y="315" width="92" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="153.0" y="342" text-anchor="middle" dominant-baseline="central" font-size="16">…</text>
<rect x="199" y="315" width="92" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="245.0" y="342" text-anchor="middle" dominant-baseline="central" font-size="16">i+2ʲ⁻¹−1</text>
<path d="M61.0 375L61.0 414" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<path d="M245.0 375L245.0 414" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<rect x="310" y="315" width="92" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="356.0" y="342" text-anchor="middle" dominant-baseline="central" font-size="16">i+2ʲ⁻¹</text>
<rect x="402" y="315" width="92" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="448.0" y="342" text-anchor="middle" dominant-baseline="central" font-size="16">…</text>
<rect x="494" y="315" width="92" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="540.0" y="342" text-anchor="middle" dominant-baseline="central" font-size="16">i+2ʲ−1</text>
<path d="M356.0 375L356.0 414" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<path d="M540.0 375L540.0 414" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<rect x="15" y="420" width="95" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="62.5" y="447" text-anchor="middle" dominant-baseline="central" font-size="16">i</text>
<rect x="110" y="420" width="95" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="157.5" y="447" text-anchor="middle" dominant-baseline="central" font-size="16">…</text>
<rect x="205" y="420" width="95" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="252.5" y="447" text-anchor="middle" dominant-baseline="central" font-size="16">i+2ʲ⁻¹−1</text>
<rect x="300" y="420" width="95" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="347.5" y="447" text-anchor="middle" dominant-baseline="central" font-size="16">i+2ʲ⁻¹</text>
<rect x="395" y="420" width="95" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="442.5" y="447" text-anchor="middle" dominant-baseline="central" font-size="16">…</text>
<rect x="490" y="420" width="95" height="55" stroke="#67859e" fill="white" stroke-width="1.5"/>
<text x="537.5" y="447" text-anchor="middle" dominant-baseline="central" font-size="16">i+2ʲ−1</text>
<text x="150" y="290" text-anchor="middle" dominant-baseline="central" font-size="19">2ʲ⁻¹ 个元素</text>
<text x="295" y="495" text-anchor="middle" dominant-baseline="central" font-size="19">2ʲ 个元素</text>
<text x="795" y="330" text-anchor="middle" dominant-baseline="central" font-size="20">f[i, j−1],f[i+2ʲ⁻¹, j−1]</text>
<path d="M795 353L795 400" fill="none" stroke="#416687" stroke-width="2" marker-end="url(#a)"/>
<text x="795" y="447" text-anchor="middle" dominant-baseline="central" font-size="18">f[i, j] = max(f[i, j−1], f[i+2ʲ⁻¹, j−1])</text>
</g></svg>