Files

101 lines
11 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1270" height="570" viewBox="0 0 1270 570" 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="1270" height="570" fill="white"/>
<g font-family="Microsoft YaHei, Noto Sans CJK SC, Arial, sans-serif" fill="#193b32" stroke-linecap="round" stroke-linejoin="round">
<text x="55" y="57.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">dfs(1)</text>
<rect x="120" y="30" width="190" height="60" rx="4" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="215.0" y="60.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">i=1</text>
<text x="425" y="57.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">[?]</text>
<text x="55" y="187.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">dfs(2)</text>
<rect x="120" y="160" width="190" height="60" rx="4" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="215.0" y="190.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">i=2</text>
<text x="425" y="187.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">[1,?]</text>
<text x="55" y="367.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">dfs(10)</text>
<rect x="120" y="340" width="190" height="60" rx="4" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="215.0" y="370.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">i=1 i=3</text>
<text x="425" y="367.0" text-anchor="middle" dominant-baseline="central" font-size="19" fill="#193b32">[1,2,3,4,3,4,2,1,4,?]</text>
<text x="418" y="15.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">a数组</text>
<line x1="215" y1="90" x2="215" y2="156" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="215" y1="220" x2="215" y2="336" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)" stroke-dasharray="6 5"/>
<rect x="105" y="480" width="200" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="205.0" y="510.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">不通,回溯</text>
<rect x="350" y="480" width="125" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="412.5" y="510.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">继续</text>
<line x1="160" y1="400" x2="160" y2="476" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="245" y1="480" x2="245" y2="404" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="275" y1="400" x2="400" y2="476" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="52" y="510.0" text-anchor="middle" dominant-baseline="central" font-size="20" fill="#193b32">dfs(11)</text>
<rect x="565" y="165" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="589.0" y="189.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<rect x="613" y="165" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="637.0" y="189.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<rect x="661" y="165" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="685.0" y="189.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<rect x="709" y="165" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="733.0" y="189.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="565" y="213" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="589.0" y="237.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<rect x="613" y="213" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="637.0" y="237.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="661" y="213" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="685.0" y="237.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<rect x="709" y="213" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="733.0" y="237.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<rect x="565" y="261" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="589.0" y="285.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="613" y="261" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="637.0" y="285.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<rect x="661" y="261" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="685.0" y="285.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">?</text>
<rect x="709" y="261" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="733.0" y="285.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="565" y="309" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="589.0" y="333.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="613" y="309" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="637.0" y="333.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="661" y="309" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="685.0" y="333.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="709" y="309" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="733.0" y="333.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="930" y="165" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="954.0" y="189.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<rect x="978" y="165" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1002.0" y="189.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<rect x="1026" y="165" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1050.0" y="189.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<rect x="1074" y="165" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1098.0" y="189.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="930" y="213" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="954.0" y="237.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<rect x="978" y="213" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1002.0" y="237.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="1026" y="213" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1050.0" y="237.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">2</text>
<rect x="1074" y="213" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1098.0" y="237.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">1</text>
<rect x="930" y="261" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="954.0" y="285.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">4</text>
<rect x="978" y="261" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1002.0" y="285.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32">3</text>
<rect x="1026" y="261" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1050.0" y="285.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="1074" y="261" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1098.0" y="285.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="930" y="309" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="954.0" y="333.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="978" y="309" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1002.0" y="333.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="1026" y="309" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1050.0" y="333.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<rect x="1074" y="309" width="48" height="48" rx="0" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="1098.0" y="333.0" text-anchor="middle" dominant-baseline="central" font-size="21" fill="#193b32"></text>
<line x1="785" y1="262" x2="890" y2="262" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<line x1="1140" y1="262" x2="1240" y2="262" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="1210" y="300.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">继续</text>
<text x="660" y="384.9" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">dfs(11)</text>
<text x="660" y="417.1" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">均无解,回溯</text>
<text x="1025" y="400.0" text-anchor="middle" dominant-baseline="central" font-size="23" fill="#193b32">dfs(10)</text>
<line x1="710" y1="285" x2="650" y2="285" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
</g></svg>