Reorganize
This commit is contained in:
parent
9990c0e8a1
commit
487859e9d6
@ -5,7 +5,7 @@
|
||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.ipynb_checkpoints" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="CS2333" jdkType="Python SDK" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.9.18 WSL (RockyLinux): (/home/isaac/.virtualenvs/CS2333/bin/python)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="PackageRequirementsSettings">
|
||||
|
@ -7,5 +7,5 @@
|
||||
<option name="show" value="ASK" />
|
||||
<option name="description" value="" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="CS2333" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9.18 WSL (RockyLinux): (/home/isaac/.virtualenvs/CS2333/bin/python)" project-jdk-type="Python SDK" />
|
||||
</project>
|
@ -2,7 +2,17 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"outputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Generated by graphviz version 2.44.0 (0)\n -->\n<!-- Pages: 1 -->\n<svg width=\"285pt\" height=\"94pt\"\n viewBox=\"0.00 0.00 284.84 94.25\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 90.25)\">\n<polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-90.25 280.84,-90.25 280.84,4 -4,4\"/>\n<!-- 5c4499d3-b700-445f-93e5-0c749b5c16e1 -->\n<g id=\"node1\" class=\"node\">\n<title>5c4499d3-b700-445f-93e5-0c749b5c16e1</title>\n<g id=\"a_node1\"><a xlink:title=\".\">\n<ellipse fill=\"black\" stroke=\"black\" cx=\"1.8\" cy=\"-30.5\" rx=\"1.8\" ry=\"1.8\"/>\n</a>\n</g>\n</g>\n<!-- q0 -->\n<g id=\"node2\" class=\"node\">\n<title>q0</title>\n<ellipse fill=\"none\" stroke=\"black\" cx=\"63.35\" cy=\"-30.5\" rx=\"22.5\" ry=\"22.5\"/>\n<text text-anchor=\"middle\" x=\"63.35\" y=\"-26.8\" font-family=\"Times-Roman\" font-size=\"14.00\">q0</text>\n</g>\n<!-- 5c4499d3-b700-445f-93e5-0c749b5c16e1->q0 -->\n<g id=\"edge1\" class=\"edge\">\n<title>5c4499d3-b700-445f-93e5-0c749b5c16e1->q0</title>\n<g id=\"a_edge1\"><a xlink:title=\"->q0\">\n<path fill=\"none\" stroke=\"black\" d=\"M3.83,-30.5C7.36,-30.5 19.4,-30.5 31.65,-30.5\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"31.98,-33.48 40.48,-30.5 31.98,-27.53 31.98,-33.48\"/>\n</a>\n</g>\n</g>\n<!-- q0->q0 -->\n<g id=\"edge2\" class=\"edge\">\n<title>q0->q0</title>\n<path fill=\"none\" stroke=\"black\" d=\"M56,-52.3C55.19,-62.41 57.65,-71.25 63.35,-71.25 67.27,-71.25 69.65,-67.07 70.5,-61.17\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"73.48,-60.87 70.7,-52.3 67.53,-60.73 73.48,-60.87\"/>\n<text text-anchor=\"middle\" x=\"63.35\" y=\"-75.05\" font-family=\"Times-Roman\" font-size=\"14.00\">0</text>\n</g>\n<!-- q1 -->\n<g id=\"node3\" class=\"node\">\n<title>q1</title>\n<ellipse fill=\"none\" stroke=\"black\" cx=\"158.84\" cy=\"-30.5\" rx=\"26.5\" ry=\"26.5\"/>\n<ellipse fill=\"none\" stroke=\"black\" cx=\"158.84\" cy=\"-30.5\" rx=\"30.5\" ry=\"30.5\"/>\n<text text-anchor=\"middle\" x=\"158.84\" y=\"-26.8\" font-family=\"Times-Roman\" font-size=\"14.00\">q1</text>\n</g>\n<!-- q0->q1 -->\n<g id=\"edge3\" class=\"edge\">\n<title>q0->q1</title>\n<path fill=\"none\" stroke=\"black\" d=\"M86.5,-30.5C97.45,-30.5 110.92,-30.5 123.19,-30.5\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"123.37,-33.48 131.87,-30.5 123.37,-27.53 123.37,-33.48\"/>\n<text text-anchor=\"middle\" x=\"109.1\" y=\"-34.3\" font-family=\"Times-Roman\" font-size=\"14.00\">1</text>\n</g>\n<!-- q1->q0 -->\n<g id=\"edge4\" class=\"edge\">\n<title>q1->q0</title>\n<path fill=\"none\" stroke=\"black\" d=\"M135.7,-16.66C126.13,-12.26 114.71,-9.09 104.1,-11.5 99.82,-12.47 95.47,-13.95 91.29,-15.68\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"90.03,-12.98 83.53,-19.21 92.5,-18.4 90.03,-12.98\"/>\n<text text-anchor=\"middle\" x=\"109.1\" y=\"-15.3\" font-family=\"Times-Roman\" font-size=\"14.00\">0</text>\n</g>\n<!-- q2 -->\n<g id=\"node4\" class=\"node\">\n<title>q2</title>\n<ellipse fill=\"none\" stroke=\"black\" cx=\"254.34\" cy=\"-30.5\" rx=\"22.5\" ry=\"22.5\"/>\n<text text-anchor=\"middle\" x=\"254.34\" y=\"-26.8\" font-family=\"Times-Roman\" font-size=\"14.00\">q2</text>\n</g>\n<!-- q1->q2 -->\n<g id=\"edge5\" class=\"edge\">\n<title>q1->q2</title>\n<path fill=\"none\" stroke=\"black\" d=\"M185.89,-30.5C197.34,-30.5 210.87,-30.5 222.8,-30.5\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"223.04,-33.48 231.54,-30.5 223.04,-27.53 223.04,-33.48\"/>\n<text text-anchor=\"middle\" x=\"208.59\" y=\"-34.3\" font-family=\"Times-Roman\" font-size=\"14.00\">1</text>\n</g>\n<!-- q2->q1 -->\n<g id=\"edge6\" class=\"edge\">\n<title>q2->q1</title>\n<path fill=\"none\" stroke=\"black\" d=\"M234.1,-19.8C227.76,-16.83 220.55,-14 213.59,-12.5 206.06,-10.87 198.1,-11.93 190.68,-14.17\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"189.23,-11.54 182.29,-17.27 191.29,-17.12 189.23,-11.54\"/>\n<text text-anchor=\"middle\" x=\"208.59\" y=\"-16.3\" font-family=\"Times-Roman\" font-size=\"14.00\">1</text>\n</g>\n<!-- q2->q2 -->\n<g id=\"edge7\" class=\"edge\">\n<title>q2->q2</title>\n<path fill=\"none\" stroke=\"black\" d=\"M246.29,-51.88C245.3,-62.17 247.98,-71.25 254.34,-71.25 258.81,-71.25 261.47,-66.76 262.3,-60.52\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"265.28,-60.41 262.39,-51.88 259.33,-60.35 265.28,-60.41\"/>\n<text text-anchor=\"middle\" x=\"254.34\" y=\"-75.05\" font-family=\"Times-Roman\" font-size=\"14.00\">0</text>\n</g>\n</g>\n</svg>\n",
|
||||
"text/plain": "<AGraph <Swig Object of type 'Agraph_t *' at 0x7f4d007b8a20>>"
|
||||
},
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"from automata.fa.dfa import DFA\n",
|
||||
"\n",
|
||||
@ -22,10 +32,14 @@
|
||||
"my_dfa.show_diagram()\n"
|
||||
],
|
||||
"metadata": {
|
||||
"collapsed": false
|
||||
"collapsed": false,
|
||||
"ExecuteTime": {
|
||||
"end_time": "2024-01-26T19:01:38.983537200Z",
|
||||
"start_time": "2024-01-26T19:01:38.652214500Z"
|
||||
}
|
||||
},
|
||||
"id": "ad7a031539dffdd7",
|
||||
"execution_count": null
|
||||
"execution_count": 1
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
Loading…
Reference in New Issue
Block a user