summaryrefslogtreecommitdiffstats
path: root/figs/example4det.dot
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2016-11-23 17:41:56 +0100
committerDavid A. Madore <david+git@madore.org>2016-11-23 17:41:56 +0100
commit9a5b5be7a96cf857529211906aed559eafd407e1 (patch)
tree3088ae7ab3a6d115c1b82671881172aa7300d411 /figs/example4det.dot
parent6168f9ba59dca0c5bc3c39066011d9a227a9156c (diff)
downloadinf105-9a5b5be7a96cf857529211906aed559eafd407e1.tar.gz
inf105-9a5b5be7a96cf857529211906aed559eafd407e1.tar.bz2
inf105-9a5b5be7a96cf857529211906aed559eafd407e1.zip
NFAs and determinization of them.
Diffstat (limited to 'figs/example4det.dot')
-rw-r--r--figs/example4det.dot16
1 files changed, 16 insertions, 0 deletions
diff --git a/figs/example4det.dot b/figs/example4det.dot
new file mode 100644
index 0000000..2d88a37
--- /dev/null
+++ b/figs/example4det.dot
@@ -0,0 +1,16 @@
+digraph example4det {
+ rankdir="LR";
+ node [texmode="math",shape="circle",style="state"];
+ q0 [style="state,initial",label="\{0\}"];
+ q01 [style="state",label="\{0,1\}"];
+ q02 [style="state,final",label="\{0,2\}"];
+ q012 [style="state,final",label="\{0,1,2\}"];
+ edge [texmode="math",lblstyle="auto"];
+ q0 -> q0 [label="b",topath="loop above"];
+ q0 -> q01 [label="a"];
+ q01 -> q012 [label="a"];
+ q01 -> q02 [label="b"];
+ q012 -> q012 [label="a",topath="loop above"];
+ { rank="same"; q012 -> q02 [label="b"]; }
+ q02 -> q0 [label="a,b"];
+}