75 lines
7.4 KiB
XML
75 lines
7.4 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 530 895" width="530" height="895"><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="10" y="10" width="510" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="265.0" y="28" text-anchor="middle" dominant-baseline="central" font-size="16">#1 [1,5]</text>
|
||
<text x="265.0" y="52" text-anchor="middle" dominant-baseline="central" font-size="16">(35) tag=0</text>
|
||
<path d="M265 68L163.0 115" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="10" y="115" width="306" height="58" stroke="#67859e" fill="#d9e5f0" stroke-width="1.5"/>
|
||
<text x="163.0" y="133" text-anchor="middle" dominant-baseline="central" font-size="16">#2 [1,3]</text>
|
||
<text x="163.0" y="157" text-anchor="middle" dominant-baseline="central" font-size="16">(25) tag=5</text>
|
||
<path d="M265 68L418.0 115" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="316" y="115" width="204" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="418.0" y="133" text-anchor="middle" dominant-baseline="central" font-size="16">#3 [4,5]</text>
|
||
<text x="418.0" y="157" text-anchor="middle" dominant-baseline="central" font-size="16">(10) tag=0</text>
|
||
<path d="M163 173L112.0 220" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="10" y="220" width="204" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="112.0" y="238" text-anchor="middle" dominant-baseline="central" font-size="16">#4 [1,2]</text>
|
||
<text x="112.0" y="262" text-anchor="middle" dominant-baseline="central" font-size="16">(6) tag=0</text>
|
||
<path d="M163 173L265.0 220" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="214" y="220" width="102" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="265.0" y="238" text-anchor="middle" dominant-baseline="central" font-size="16">#5 [3,3]</text>
|
||
<text x="265.0" y="262" text-anchor="middle" dominant-baseline="central" font-size="16">(4) tag=0</text>
|
||
<path d="M418 173L367.0 220" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="316" y="220" width="102" height="58" stroke="#67859e" fill="#d9e5f0" stroke-width="1.5"/>
|
||
<text x="367.0" y="238" text-anchor="middle" dominant-baseline="central" font-size="16">#6 [4,4]</text>
|
||
<text x="367.0" y="262" text-anchor="middle" dominant-baseline="central" font-size="16">(7) tag=5</text>
|
||
<path d="M418 173L469.0 220" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="418" y="220" width="102" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="469.0" y="238" text-anchor="middle" dominant-baseline="central" font-size="16">#7 [5,5]</text>
|
||
<text x="469.0" y="262" text-anchor="middle" dominant-baseline="central" font-size="16">(3) tag=0</text>
|
||
<path d="M112 278L61.0 325" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="10" y="325" width="102" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="61.0" y="343" text-anchor="middle" dominant-baseline="central" font-size="16">#8 [1,1]</text>
|
||
<text x="61.0" y="367" text-anchor="middle" dominant-baseline="central" font-size="16">(1) tag=0</text>
|
||
<path d="M112 278L163.0 325" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="112" y="325" width="102" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="163.0" y="343" text-anchor="middle" dominant-baseline="central" font-size="16">#9 [2,2]</text>
|
||
<text x="163.0" y="367" text-anchor="middle" dominant-baseline="central" font-size="16">(5) tag=0</text>
|
||
<rect x="10" y="445" width="510" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="265.0" y="463" text-anchor="middle" dominant-baseline="central" font-size="16">#1 [1,5]</text>
|
||
<text x="265.0" y="487" text-anchor="middle" dominant-baseline="central" font-size="16">(35) tag=0</text>
|
||
<path d="M265 503L163.0 550" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="10" y="550" width="306" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="163.0" y="568" text-anchor="middle" dominant-baseline="central" font-size="16">#2 [1,3]</text>
|
||
<text x="163.0" y="592" text-anchor="middle" dominant-baseline="central" font-size="16">(25) tag=0</text>
|
||
<path d="M265 503L418.0 550" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="316" y="550" width="204" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="418.0" y="568" text-anchor="middle" dominant-baseline="central" font-size="16">#3 [4,5]</text>
|
||
<text x="418.0" y="592" text-anchor="middle" dominant-baseline="central" font-size="16">(10) tag=0</text>
|
||
<path d="M163 608L112.0 655" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="10" y="655" width="204" height="58" stroke="#67859e" fill="#d9e5f0" stroke-width="1.5"/>
|
||
<text x="112.0" y="673" text-anchor="middle" dominant-baseline="central" font-size="16">#4 [1,2]</text>
|
||
<text x="112.0" y="697" text-anchor="middle" dominant-baseline="central" font-size="16">(16) tag=5</text>
|
||
<path d="M163 608L265.0 655" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="214" y="655" width="102" height="58" stroke="#67859e" fill="#d9e5f0" stroke-width="1.5"/>
|
||
<text x="265.0" y="673" text-anchor="middle" dominant-baseline="central" font-size="16">#5 [3,3]</text>
|
||
<text x="265.0" y="697" text-anchor="middle" dominant-baseline="central" font-size="16">(9) tag=5</text>
|
||
<path d="M418 608L367.0 655" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="316" y="655" width="102" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="367.0" y="673" text-anchor="middle" dominant-baseline="central" font-size="16">#6 [4,4]</text>
|
||
<text x="367.0" y="697" text-anchor="middle" dominant-baseline="central" font-size="16">(7) tag=5</text>
|
||
<path d="M418 608L469.0 655" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="418" y="655" width="102" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="469.0" y="673" text-anchor="middle" dominant-baseline="central" font-size="16">#7 [5,5]</text>
|
||
<text x="469.0" y="697" text-anchor="middle" dominant-baseline="central" font-size="16">(3) tag=0</text>
|
||
<path d="M112 713L61.0 760" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="10" y="760" width="102" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="61.0" y="778" text-anchor="middle" dominant-baseline="central" font-size="16">#8 [1,1]</text>
|
||
<text x="61.0" y="802" text-anchor="middle" dominant-baseline="central" font-size="16">(1) tag=0</text>
|
||
<path d="M112 713L163.0 760" fill="none" stroke="#416687" stroke-width="2"/>
|
||
<rect x="112" y="760" width="102" height="58" stroke="#67859e" fill="white" stroke-width="1.5"/>
|
||
<text x="163.0" y="778" text-anchor="middle" dominant-baseline="central" font-size="16">#9 [2,2]</text>
|
||
<text x="163.0" y="802" text-anchor="middle" dominant-baseline="central" font-size="16">(5) tag=0</text>
|
||
<text x="265" y="407" text-anchor="middle" dominant-baseline="central" font-size="19">(a)区间加 5 后</text>
|
||
<text x="265" y="842" text-anchor="middle" dominant-baseline="central" font-size="19">(b)下放 #2 的标记</text>
|
||
<text x="265" y="875" text-anchor="middle" dominant-baseline="central" font-size="18">父标记清零,两个子结点累加标记 5</text>
|
||
</g></svg> |