23 lines
2.4 KiB
XML
23 lines
2.4 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920 200" width="920" height="200"><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="10" y="70" width="78" height="50" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="49" y="95" text-anchor="middle" dominant-baseline="central" font-size="17">l</text>
|
||
<rect x="88" y="70" width="78" height="50" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="127" y="95" text-anchor="middle" dominant-baseline="central" font-size="17">…</text>
|
||
<rect x="166" y="70" width="78" height="50" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="205" y="95" text-anchor="middle" dominant-baseline="central" font-size="17">r−2ᵏ+1</text>
|
||
<rect x="244" y="70" width="78" height="50" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="283" y="95" text-anchor="middle" dominant-baseline="central" font-size="17">…</text>
|
||
<rect x="322" y="70" width="78" height="50" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="361" y="95" text-anchor="middle" dominant-baseline="central" font-size="17">l+2ᵏ−1</text>
|
||
<rect x="400" y="70" width="78" height="50" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="439" y="95" text-anchor="middle" dominant-baseline="central" font-size="17">…</text>
|
||
<rect x="478" y="70" width="78" height="50" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="517" y="95" text-anchor="middle" dominant-baseline="central" font-size="17">r</text>
|
||
<path d="M166 52L556 52" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<path d="M166 52L166 60" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<path d="M556 52L556 60" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<text x="360" y="26" text-anchor="middle" dominant-baseline="central" font-size="19">f[r−2ᵏ+1, k]</text>
|
||
<path d="M10 138L400 138" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<text x="200" y="165" text-anchor="middle" dominant-baseline="central" font-size="19">f[l, k]</text>
|
||
<text x="735" y="97" text-anchor="middle" dominant-baseline="central" font-size="18">ans = max(f[r−2ᵏ+1, k], f[l, k])</text>
|
||
</g></svg> |