Files
cpp-courseware/2.Course/1.深入浅出程序设计竞赛(基础篇)/书籍:深入浅出程序设计竞赛(基础篇)/images/svg/8cee33bec6b4a23473df69ce703ba53d47114ba0e159da2c2ce1fdce9067fa2d.svg
T

57 lines
6.4 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1130" height="450" viewBox="0 0 1130 450" role="img" aria-labelledby="title desc">
<title id="title">深度优先与广度优先的访问顺序</title>
<desc id="desc">根据教材扫描图人工重绘的矢量教学示意图。文字与线条可无损缩放。</desc>
<defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="8" refY="4.5" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 L9 4.5 L0 9 Z" fill="#417b63"/></marker></defs>
<rect width="1130" height="450" fill="white"/>
<g font-family="Microsoft YaHei, Noto Sans CJK SC, Arial, sans-serif" fill="#193b32" stroke-linecap="round" stroke-linejoin="round">
<line x1="240.609108810688" y1="75.19884498886665" x2="162.16101850207082" y2="156.91560572700956" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="260.0" y1="83.0" x2="260.0" y2="148.0" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="279.39089118931196" y1="75.19884498886665" x2="357.8389814979292" y2="156.91560572700956" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="125.59411884802925" y1="204.00980191995123" x2="81.46386417368085" y2="277.5602263771986" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="151.27668119944846" y1="205.62882090783745" x2="182.11236434348746" y2="275.7099189624715" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="368.7233188005515" y1="205.62882090783745" x2="337.88763565651254" y2="275.7099189624715" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="394.40588115197073" y1="204.00980191995123" x2="438.53613582631914" y2="277.5602263771986" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="260" cy="55" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="260" y="55.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<circle cx="140" cy="180" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="140" y="180.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<circle cx="260" cy="180" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="260" y="180.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">5</text>
<circle cx="380" cy="180" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="380" y="180.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">6</text>
<circle cx="65" cy="305" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="65" y="305.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<circle cx="195" cy="305" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="195" y="305.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<circle cx="325" cy="305" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="325" y="305.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">7</text>
<circle cx="455" cy="305" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="455" y="305.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">8</text>
<text x="265" y="386.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">(a) 深度优先</text>
<text x="265" y="421.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">圆内数字表示访问次序</text>
<line x1="810.609108810688" y1="75.19884498886665" x2="732.1610185020709" y2="156.91560572700956" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="830.0" y1="83.0" x2="830.0" y2="148.0" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="849.390891189312" y1="75.19884498886665" x2="927.8389814979291" y2="156.91560572700956" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="695.5941188480292" y1="204.00980191995123" x2="651.4638641736808" y2="277.5602263771986" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="721.2766811994485" y1="205.62882090783745" x2="752.1123643434875" y2="275.7099189624715" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="938.7233188005515" y1="205.62882090783745" x2="907.8876356565125" y2="275.7099189624715" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="964.4058811519708" y1="204.00980191995123" x2="1008.5361358263192" y2="277.5602263771986" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<circle cx="830" cy="55" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="830" y="55.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<circle cx="710" cy="180" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="710" y="180.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<circle cx="830" cy="180" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="830" y="180.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<circle cx="950" cy="180" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="950" y="180.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<circle cx="635" cy="305" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="635" y="305.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">5</text>
<circle cx="765" cy="305" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="765" y="305.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">6</text>
<circle cx="895" cy="305" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="895" y="305.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">7</text>
<circle cx="1025" cy="305" r="27" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="1025" y="305.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">8</text>
<text x="835" y="386.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">(b) 广度优先</text>
<text x="835" y="421.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">圆内数字表示访问次序</text>
</g></svg>