This commit is contained in:
milner committed 2026-09-18 16:27:30 +00:00
commit c1403764d9
96 files changed
+39927

No files matched your search

@@ -0,0 +1,176 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 16.0.0 (0)
-->
<!-- Title: grammar Pages: 1 -->
<svg width="436pt" height="192pt"
viewBox="0.00 0.00 436.00 192.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 187.5)">
<title>grammar</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-187.5 431.75,-187.5 431.75,4 -4,4"/>
<text xml:space="preserve" text-anchor="middle" x="213.88" y="-166.2" font-family="Times,serif" font-size="14.00">palindrome step 1 after: merge S,T_c</text>
<!-- nt_S -->
<g id="node1" class="node">
<title>nt_S</title>
<ellipse fill="none" stroke="red" stroke-width="2.5" cx="22" cy="-87" rx="18" ry="18"/>
<ellipse fill="none" stroke="red" stroke-width="2.5" cx="22" cy="-87" rx="22" ry="22"/>
<text xml:space="preserve" text-anchor="middle" x="22" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">S</text>
</g>
<!-- pr_1 -->
<g id="node8" class="node">
<title>pr_1</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="142.75,-159 88.75,-159 88.75,-123 142.75,-123 142.75,-159"/>
<text xml:space="preserve" text-anchor="middle" x="115.75" y="-143.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">c</text>
<text xml:space="preserve" text-anchor="middle" x="115.75" y="-131.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=0.083</text>
</g>
<!-- nt_S&#45;&gt;pr_1 -->
<g id="edge3" class="edge">
<title>nt_S&#45;&gt;pr_1</title>
<path fill="none" stroke="black" d="M41.01,-99.55C47.53,-103.95 55.01,-108.83 62,-113 66.99,-115.98 72.33,-119 77.62,-121.89"/>
<polygon fill="black" stroke="black" points="75.83,-124.9 86.29,-126.55 79.14,-118.74 75.83,-124.9"/>
</g>
<!-- pr_2 -->
<g id="node9" class="node">
<title>pr_2</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="146.25,-105 85.25,-105 85.25,-69 146.25,-69 146.25,-105"/>
<text xml:space="preserve" text-anchor="middle" x="115.75" y="-89.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">T_b S T_b</text>
<text xml:space="preserve" text-anchor="middle" x="115.75" y="-77.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=0.417</text>
</g>
<!-- nt_S&#45;&gt;pr_2 -->
<g id="edge5" class="edge">
<title>nt_S&#45;&gt;pr_2</title>
<path fill="none" stroke="black" d="M43.78,-94.65C49.6,-96.44 55.98,-98.09 62,-99 65.62,-99.54 69.36,-99.64 73.11,-99.42"/>
<polygon fill="black" stroke="black" points="73.28,-102.93 82.71,-98.12 72.33,-96 73.28,-102.93"/>
</g>
<!-- pr_4 -->
<g id="node11" class="node">
<title>pr_4</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="146.25,-48 85.25,-48 85.25,-12 146.25,-12 146.25,-48"/>
<text xml:space="preserve" text-anchor="middle" x="115.75" y="-32.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">T_a S T_a</text>
<text xml:space="preserve" text-anchor="middle" x="115.75" y="-20.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=0.500</text>
</g>
<!-- nt_S&#45;&gt;pr_4 -->
<g id="edge11" class="edge">
<title>nt_S&#45;&gt;pr_4</title>
<path fill="none" stroke="black" d="M42.01,-75.19C51.43,-69.34 63.18,-62.04 74.47,-55.02"/>
<polygon fill="black" stroke="black" points="76.27,-58.02 82.92,-49.77 72.58,-52.08 76.27,-58.02"/>
</g>
<!-- nt_T_a -->
<g id="node2" class="node">
<title>nt_T_a</title>
<ellipse fill="none" stroke="black" cx="214.5" cy="-18" rx="27" ry="18"/>
<text xml:space="preserve" text-anchor="middle" x="214.5" y="-14.5" font-family="Helvetica,sans-Serif" font-size="10.00">T_a</text>
</g>
<!-- pr_3 -->
<g id="node10" class="node">
<title>pr_3</title>
<polygon fill="none" stroke="black" points="332.5,-36 278.5,-36 278.5,0 332.5,0 332.5,-36"/>
<text xml:space="preserve" text-anchor="middle" x="305.5" y="-20.5" font-family="Helvetica,sans-Serif" font-size="10.00">a</text>
<text xml:space="preserve" text-anchor="middle" x="305.5" y="-8.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=1.000</text>
</g>
<!-- nt_T_a&#45;&gt;pr_3 -->
<g id="edge9" class="edge">
<title>nt_T_a&#45;&gt;pr_3</title>
<path fill="none" stroke="black" d="M241.72,-18C249.62,-18 258.44,-18 266.93,-18"/>
<polygon fill="black" stroke="black" points="266.64,-21.5 276.64,-18 266.64,-14.5 266.64,-21.5"/>
</g>
<!-- nt_T_b -->
<g id="node3" class="node">
<title>nt_T_b</title>
<ellipse fill="none" stroke="black" cx="214.5" cy="-79" rx="27" ry="18"/>
<text xml:space="preserve" text-anchor="middle" x="214.5" y="-75.5" font-family="Helvetica,sans-Serif" font-size="10.00">T_b</text>
</g>
<!-- pr_0 -->
<g id="node7" class="node">
<title>pr_0</title>
<polygon fill="none" stroke="black" points="332.5,-97 278.5,-97 278.5,-61 332.5,-61 332.5,-97"/>
<text xml:space="preserve" text-anchor="middle" x="305.5" y="-81.5" font-family="Helvetica,sans-Serif" font-size="10.00">b</text>
<text xml:space="preserve" text-anchor="middle" x="305.5" y="-69.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=1.000</text>
</g>
<!-- nt_T_b&#45;&gt;pr_0 -->
<g id="edge1" class="edge">
<title>nt_T_b&#45;&gt;pr_0</title>
<path fill="none" stroke="black" d="M241.72,-79C249.62,-79 258.44,-79 266.93,-79"/>
<polygon fill="black" stroke="black" points="266.64,-82.5 276.64,-79 266.64,-75.5 266.64,-82.5"/>
</g>
<!-- tm_a -->
<g id="node4" class="node">
<title>tm_a</title>
<text xml:space="preserve" text-anchor="middle" x="400.75" y="-14.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#666666">a</text>
</g>
<!-- tm_b -->
<g id="node5" class="node">
<title>tm_b</title>
<text xml:space="preserve" text-anchor="middle" x="400.75" y="-75.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#666666">b</text>
</g>
<!-- tm_c -->
<g id="node6" class="node">
<title>tm_c</title>
<text xml:space="preserve" text-anchor="middle" x="214.5" y="-137.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#666666">c</text>
</g>
<!-- pr_0&#45;&gt;tm_b -->
<g id="edge2" class="edge">
<title>pr_0&#45;&gt;tm_b</title>
<path fill="none" stroke="black" d="M332.97,-79C342.18,-79 352.69,-79 362.61,-79"/>
<polygon fill="black" stroke="black" points="362.34,-82.5 372.34,-79 362.34,-75.5 362.34,-82.5"/>
<text xml:space="preserve" text-anchor="middle" x="353.12" y="-80.95" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_1&#45;&gt;tm_c -->
<g id="edge4" class="edge">
<title>pr_1&#45;&gt;tm_c</title>
<path fill="none" stroke="black" d="M143.96,-141C154.05,-141 165.68,-141 176.51,-141"/>
<polygon fill="black" stroke="black" points="176.31,-144.5 186.31,-141 176.31,-137.5 176.31,-144.5"/>
<text xml:space="preserve" text-anchor="middle" x="166.88" y="-142.95" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_2&#45;&gt;nt_S -->
<g id="edge7" class="edge">
<title>pr_2&#45;&gt;nt_S</title>
<path fill="none" stroke="black" d="M84.07,-86.54C76.83,-86.48 69.14,-86.45 62,-86.5 60.09,-86.51 58.13,-86.53 56.15,-86.55"/>
<polygon fill="black" stroke="black" points="56.34,-83.04 46.38,-86.65 56.42,-90.04 56.34,-83.04"/>
<text xml:space="preserve" text-anchor="middle" x="64.62" y="-88.45" font-family="Helvetica,sans-Serif" font-size="9.00">2</text>
</g>
<!-- pr_2&#45;&gt;nt_T_b -->
<g id="edge6" class="edge">
<title>pr_2&#45;&gt;nt_T_b</title>
<path fill="none" stroke="black" d="M147.44,-84.75C154.68,-84.2 162.36,-83.6 169.5,-83 171.68,-82.82 173.92,-82.63 176.18,-82.43"/>
<polygon fill="black" stroke="black" points="176.29,-85.94 185.94,-81.57 175.67,-78.96 176.29,-85.94"/>
<text xml:space="preserve" text-anchor="middle" x="166.88" y="-85.3" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_2&#45;&gt;nt_T_b -->
<g id="edge8" class="edge">
<title>pr_2&#45;&gt;nt_T_b</title>
<path fill="none" stroke="black" d="M147.27,-74.73C152.84,-72.97 158.65,-71.44 164.25,-70.5 168.74,-69.74 173.46,-69.65 178.13,-69.99"/>
<polygon fill="black" stroke="black" points="177.57,-73.45 187.96,-71.36 178.54,-66.51 177.57,-73.45"/>
<text xml:space="preserve" text-anchor="middle" x="166.88" y="-72.45" font-family="Helvetica,sans-Serif" font-size="9.00">3</text>
</g>
<!-- pr_3&#45;&gt;tm_a -->
<g id="edge10" class="edge">
<title>pr_3&#45;&gt;tm_a</title>
<path fill="none" stroke="black" d="M332.97,-18C342.18,-18 352.69,-18 362.61,-18"/>
<polygon fill="black" stroke="black" points="362.34,-21.5 372.34,-18 362.34,-14.5 362.34,-21.5"/>
<text xml:space="preserve" text-anchor="middle" x="353.12" y="-19.95" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_4&#45;&gt;nt_S -->
<g id="edge13" class="edge">
<title>pr_4&#45;&gt;nt_S</title>
<path fill="none" stroke="black" d="M84.01,-36.07C76.48,-38.34 68.67,-41.4 62,-45.5 55.32,-49.6 49.04,-55.15 43.55,-60.84"/>
<polygon fill="black" stroke="black" points="41.19,-58.24 37.13,-68.02 46.4,-62.9 41.19,-58.24"/>
<text xml:space="preserve" text-anchor="middle" x="64.62" y="-47.45" font-family="Helvetica,sans-Serif" font-size="9.00">2</text>
</g>
<!-- pr_4&#45;&gt;nt_T_a -->
<g id="edge12" class="edge">
<title>pr_4&#45;&gt;nt_T_a</title>
<path fill="none" stroke="black" d="M147.36,-26.2C156.57,-25.06 166.78,-23.79 176.36,-22.61"/>
<polygon fill="black" stroke="black" points="176.64,-26.1 186.13,-21.39 175.78,-19.15 176.64,-26.1"/>
<text xml:space="preserve" text-anchor="middle" x="166.88" y="-25.95" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_4&#45;&gt;nt_T_a -->
<g id="edge14" class="edge">
<title>pr_4&#45;&gt;nt_T_a</title>
<path fill="none" stroke="black" d="M147.33,-14.67C152.84,-12.53 158.62,-10.66 164.25,-9.5 168.93,-8.53 173.88,-8.38 178.77,-8.73"/>
<polygon fill="black" stroke="black" points="178,-12.15 188.39,-10.1 178.99,-5.22 178,-12.15"/>
<text xml:space="preserve" text-anchor="middle" x="166.88" y="-11.45" font-family="Helvetica,sans-Serif" font-size="9.00">3</text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.8 KiB