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

101 lines
11 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1180" height="415" viewBox="0 0 1180 415" 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="1180" height="415" fill="white"/>
<g font-family="Microsoft YaHei, Noto Sans CJK SC, Arial, sans-serif" fill="#193b32" stroke-linecap="round" stroke-linejoin="round">
<rect x="30" y="80" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="57.0" y="107.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">0</text>
<rect x="84" y="80" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="111.0" y="107.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="138" y="80" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="165.0" y="107.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<rect x="192" y="80" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="219.0" y="107.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="30" y="134" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="57.0" y="161.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="84" y="134" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="111.0" y="161.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="138" y="134" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="165.0" y="161.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<rect x="192" y="134" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="219.0" y="161.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<rect x="30" y="188" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="57.0" y="215.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<rect x="84" y="188" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="111.0" y="215.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<rect x="138" y="188" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="165.0" y="215.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="192" y="188" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="219.0" y="215.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="30" y="242" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="57.0" y="269.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="84" y="242" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="111.0" y="269.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<rect x="138" y="242" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="165.0" y="269.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="192" y="242" width="54" height="54" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="219.0" y="269.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<text x="57" y="52.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">1,1</text>
<text x="225" y="326.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">4,4</text>
<text x="130" y="382.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">(a)</text>
<line x1="57" y1="107" x2="111" y2="215" stroke="#417b63" stroke-width="1.3" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<line x1="57" y1="107" x2="165" y2="161" stroke="#417b63" stroke-width="1.3" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<line x1="111" y1="215" x2="219" y2="269" stroke="#417b63" stroke-width="1.3" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<line x1="111" y1="215" x2="219" y2="161" stroke="#417b63" stroke-width="1.3" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<line x1="111" y1="215" x2="165" y2="107" stroke="#417b63" stroke-width="1.3" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<line x1="165" y1="161" x2="57" y2="215" stroke="#417b63" stroke-width="1.3" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<line x1="165" y1="161" x2="111" y2="269" stroke="#417b63" stroke-width="1.3" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<rect x="320" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="365.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">q[]</text>
<rect x="320" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="365.0" y="192.5" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">信息</text>
<rect x="410" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="455.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">0</text>
<rect x="410" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="455.0" y="178.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">d=0</text>
<text x="455.0" y="206.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">(1,1)</text>
<rect x="500" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="545.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">1</text>
<rect x="500" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="545.0" y="178.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">d=1</text>
<text x="545.0" y="206.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">(3,2)</text>
<rect x="590" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="635.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">2</text>
<rect x="590" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="635.0" y="178.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">d=1</text>
<text x="635.0" y="206.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">(2,3)</text>
<rect x="680" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="725.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">3</text>
<rect x="680" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="725.0" y="178.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">d=2</text>
<text x="725.0" y="206.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">(4,4)</text>
<rect x="770" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="815.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">4</text>
<rect x="770" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="815.0" y="178.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">d=2</text>
<text x="815.0" y="206.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">(2,4)</text>
<rect x="860" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="905.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">5</text>
<rect x="860" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="905.0" y="178.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">d=2</text>
<text x="905.0" y="206.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">(1,3)</text>
<rect x="950" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="995.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">6</text>
<rect x="950" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="995.0" y="178.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">d=2</text>
<text x="995.0" y="206.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">(3,1)</text>
<rect x="1040" y="80" width="90" height="65" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="1085.0" y="112.5" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">7</text>
<rect x="1040" y="145" width="90" height="95" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="1085.0" y="178.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">d=2</text>
<text x="1085.0" y="206.5" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">(4,2)</text>
<path d="M455 244 Q500.0 335 545 244" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M455 244 Q545.0 360 635 244" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M545 78 Q635.0 -15 725 76" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M545 78 Q680.0 -25 815 76" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M545 78 Q725.0 -35 905 76" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M635 244 Q815.0 335 995 244" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<path d="M635 244 Q860.0 360 1085 244" fill="none" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="770" y="382.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">(b)</text>
</g></svg>