|
5 | 5 | <code>[A[0], B[0], A[1], B[1], A[2], B[2], ...]</code> |
6 | 6 | </p> |
7 | 7 |
|
| 8 | +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 180" width="400" height="180" |
| 9 | + style="display:block; margin:20px auto;" font-family="monospace" font-size="11"> |
| 10 | + <defs> |
| 11 | + <marker id="arrBlue" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"> |
| 12 | + <path d="M 0 0 L 10 5 L 0 10 z" fill="#4477bb"/> |
| 13 | + </marker> |
| 14 | + <marker id="arrGreen" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"> |
| 15 | + <path d="M 0 0 L 10 5 L 0 10 z" fill="#44aa66"/> |
| 16 | + </marker> |
| 17 | + </defs> |
| 18 | + <rect width="400" height="180" rx="8" fill="#222"/> |
| 19 | + |
| 20 | + <!-- Label A --> |
| 21 | + <text x="60" y="20" fill="#ccc" font-size="13" text-anchor="middle" font-weight="bold">A</text> |
| 22 | + <!-- Array A cells --> |
| 23 | + <rect x="10" y="26" width="40" height="28" rx="3" fill="#1e2d4d" stroke="#4477bb" stroke-width="1.5"/> |
| 24 | + <text x="30" y="45" text-anchor="middle" fill="#ccc">a₀</text> |
| 25 | + <rect x="54" y="26" width="40" height="28" rx="3" fill="#1e2d4d" stroke="#4477bb" stroke-width="1.5"/> |
| 26 | + <text x="74" y="45" text-anchor="middle" fill="#ccc">a₁</text> |
| 27 | + <rect x="98" y="26" width="40" height="28" rx="3" fill="#1e2d4d" stroke="#4477bb" stroke-width="1.5"/> |
| 28 | + <text x="118" y="45" text-anchor="middle" fill="#ccc">a₂</text> |
| 29 | + <rect x="142" y="26" width="40" height="28" rx="3" fill="#1e2d4d" stroke="#4477bb" stroke-width="1.5"/> |
| 30 | + <text x="162" y="45" text-anchor="middle" fill="#ccc">a₃</text> |
| 31 | + |
| 32 | + <!-- Label B --> |
| 33 | + <text x="310" y="20" fill="#ccc" font-size="13" text-anchor="middle" font-weight="bold">B</text> |
| 34 | + <!-- Array B cells --> |
| 35 | + <rect x="220" y="26" width="40" height="28" rx="3" fill="#1e3d2d" stroke="#44aa66" stroke-width="1.5"/> |
| 36 | + <text x="240" y="45" text-anchor="middle" fill="#ccc">b₀</text> |
| 37 | + <rect x="264" y="26" width="40" height="28" rx="3" fill="#1e3d2d" stroke="#44aa66" stroke-width="1.5"/> |
| 38 | + <text x="284" y="45" text-anchor="middle" fill="#ccc">b₁</text> |
| 39 | + <rect x="308" y="26" width="40" height="28" rx="3" fill="#1e3d2d" stroke="#44aa66" stroke-width="1.5"/> |
| 40 | + <text x="328" y="45" text-anchor="middle" fill="#ccc">b₂</text> |
| 41 | + <rect x="352" y="26" width="40" height="28" rx="3" fill="#1e3d2d" stroke="#44aa66" stroke-width="1.5"/> |
| 42 | + <text x="372" y="45" text-anchor="middle" fill="#ccc">b₃</text> |
| 43 | + |
| 44 | + <!-- Label output --> |
| 45 | + <text x="200" y="108" fill="#ccc" font-size="13" text-anchor="middle" font-weight="bold">output</text> |
| 46 | + <!-- Output array cells (alternating blue/green) --> |
| 47 | + <rect x="10" y="114" width="42" height="28" rx="3" fill="#1e2d4d" stroke="#4477bb" stroke-width="1.5"/> |
| 48 | + <text x="31" y="133" text-anchor="middle" fill="#ccc">a₀</text> |
| 49 | + <rect x="56" y="114" width="42" height="28" rx="3" fill="#1e3d2d" stroke="#44aa66" stroke-width="1.5"/> |
| 50 | + <text x="77" y="133" text-anchor="middle" fill="#ccc">b₀</text> |
| 51 | + <rect x="102" y="114" width="42" height="28" rx="3" fill="#1e2d4d" stroke="#4477bb" stroke-width="1.5"/> |
| 52 | + <text x="123" y="133" text-anchor="middle" fill="#ccc">a₁</text> |
| 53 | + <rect x="148" y="114" width="42" height="28" rx="3" fill="#1e3d2d" stroke="#44aa66" stroke-width="1.5"/> |
| 54 | + <text x="169" y="133" text-anchor="middle" fill="#ccc">b₁</text> |
| 55 | + <rect x="194" y="114" width="42" height="28" rx="3" fill="#1e2d4d" stroke="#4477bb" stroke-width="1.5"/> |
| 56 | + <text x="215" y="133" text-anchor="middle" fill="#ccc">a₂</text> |
| 57 | + <rect x="240" y="114" width="42" height="28" rx="3" fill="#1e3d2d" stroke="#44aa66" stroke-width="1.5"/> |
| 58 | + <text x="261" y="133" text-anchor="middle" fill="#ccc">b₂</text> |
| 59 | + <rect x="286" y="114" width="42" height="28" rx="3" fill="#1e2d4d" stroke="#4477bb" stroke-width="1.5"/> |
| 60 | + <text x="307" y="133" text-anchor="middle" fill="#ccc">a₃</text> |
| 61 | + <rect x="332" y="114" width="42" height="28" rx="3" fill="#1e3d2d" stroke="#44aa66" stroke-width="1.5"/> |
| 62 | + <text x="353" y="133" text-anchor="middle" fill="#ccc">b₃</text> |
| 63 | + |
| 64 | + <!-- Curved arrows from A to output (dashed, blue) --> |
| 65 | + <path d="M30,54 C30,80 31,90 31,114" stroke="#4477bb" stroke-width="1.2" stroke-dasharray="4,3" fill="none" marker-end="url(#arrBlue)"/> |
| 66 | + <path d="M74,54 C74,78 123,90 123,114" stroke="#4477bb" stroke-width="1.2" stroke-dasharray="4,3" fill="none" marker-end="url(#arrBlue)"/> |
| 67 | + <path d="M118,54 C118,78 215,90 215,114" stroke="#4477bb" stroke-width="1.2" stroke-dasharray="4,3" fill="none" marker-end="url(#arrBlue)"/> |
| 68 | + <path d="M162,54 C162,78 307,90 307,114" stroke="#4477bb" stroke-width="1.2" stroke-dasharray="4,3" fill="none" marker-end="url(#arrBlue)"/> |
| 69 | + |
| 70 | + <!-- Curved arrows from B to output (dashed, green) --> |
| 71 | + <path d="M240,54 C240,78 77,90 77,114" stroke="#44aa66" stroke-width="1.2" stroke-dasharray="4,3" fill="none" marker-end="url(#arrGreen)"/> |
| 72 | + <path d="M284,54 C284,78 169,90 169,114" stroke="#44aa66" stroke-width="1.2" stroke-dasharray="4,3" fill="none" marker-end="url(#arrGreen)"/> |
| 73 | + <path d="M328,54 C328,78 261,90 261,114" stroke="#44aa66" stroke-width="1.2" stroke-dasharray="4,3" fill="none" marker-end="url(#arrGreen)"/> |
| 74 | + <path d="M372,54 C372,78 353,90 353,114" stroke="#44aa66" stroke-width="1.2" stroke-dasharray="4,3" fill="none" marker-end="url(#arrGreen)"/> |
| 75 | +</svg> |
| 76 | + |
8 | 77 | <h2>Implementation Requirements</h2> |
9 | 78 | <ul> |
10 | 79 | <li>Use only native features (external libraries are not permitted)</li> |
|
0 commit comments