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

96 lines
10 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1140" height="850" viewBox="0 0 1140 850" 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="1140" height="850" fill="white"/>
<g font-family="Microsoft YaHei, Noto Sans CJK SC, Arial, sans-serif" fill="#193b32" stroke-linecap="round" stroke-linejoin="round">
<text x="95" y="150.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">(a) 原链表</text>
<text x="220" y="176.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">Next:</text>
<rect x="290" y="95" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="340.0" y="122.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1号</text>
<rect x="290" y="150" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="340.0" y="177.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="445" y="95" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="495.0" y="122.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2号</text>
<rect x="445" y="150" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="495.0" y="177.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<rect x="600" y="95" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="650.0" y="122.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3号</text>
<rect x="600" y="150" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="650.0" y="177.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">0</text>
<rect x="755" y="95" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="805.0" y="122.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4号</text>
<rect x="755" y="150" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="805.0" y="177.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<path d="M225 55 Q280 55 300 92" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="225" y="35.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">链首</text>
<path d="M355 183 C355 -5 740 -5 770 92" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="515" y1="177" x2="615" y2="123" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M650 182 V240" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="650" y="265.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">链尾</text>
<path d="M823 185 C823 280 460 280 460 130" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="95" y="425.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">(b) 插入元素</text>
<text x="220" y="451.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">Next:</text>
<rect x="290" y="370" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="340.0" y="397.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1号</text>
<rect x="290" y="425" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="340.0" y="452.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="445" y="370" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="495.0" y="397.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2号</text>
<rect x="445" y="425" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="495.0" y="452.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<rect x="600" y="370" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="650.0" y="397.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3号</text>
<rect x="600" y="425" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="650.0" y="452.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">0</text>
<rect x="755" y="370" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="805.0" y="397.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4号</text>
<rect x="755" y="425" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="805.0" y="452.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">5</text>
<text x="805" y="352.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">x元素</text>
<rect x="910" y="370" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="960.0" y="397.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">5号</text>
<rect x="910" y="425" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="960.0" y="452.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<text x="960" y="352.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">y元素</text>
<path d="M225 330 Q280 330 300 367" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="225" y="310.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">链首</text>
<path d="M355 458 C355 270 740 270 770 367" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="515" y1="452" x2="615" y2="398" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M650 457 V515" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="650" y="540.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">链尾</text>
<line x1="825" y1="452" x2="925" y2="398" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M978 460 C978 555 460 555 460 405" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="95" y="700.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">(c) 删除元素</text>
<text x="220" y="726.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">Next:</text>
<rect x="290" y="645" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="340.0" y="672.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1号</text>
<rect x="290" y="700" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="340.0" y="727.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="445" y="645" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="495.0" y="672.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2号</text>
<rect x="445" y="700" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="495.0" y="727.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<text x="495" y="627.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">无效元素</text>
<rect x="600" y="645" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="650.0" y="672.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3号</text>
<rect x="600" y="700" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="650.0" y="727.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">0</text>
<rect x="755" y="645" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="805.0" y="672.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4号</text>
<rect x="755" y="700" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="805.0" y="727.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">5</text>
<rect x="910" y="645" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="960.0" y="672.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">5号</text>
<rect x="910" y="700" width="100" height="55" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="960.0" y="727.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<text x="960" y="627.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">x元素</text>
<path d="M225 605 Q280 605 300 642" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="225" y="585.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">链首</text>
<path d="M355 733 C355 545 740 545 770 642" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="515" y1="727" x2="615" y2="673" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<path d="M650 732 V790" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="650" y="815.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">链尾</text>
<line x1="825" y1="727" x2="925" y2="673" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M978 735 C978 830 615 830 615 680" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
</g></svg>