diff options
author | David A. Madore <david+git@madore.org> | 2017-12-07 12:21:07 +0100 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2017-12-07 12:21:07 +0100 |
commit | fea3f1a462dc875532282776afd6022211999ac1 (patch) | |
tree | 6ed9713e01e0bf456075b5e911a84e550afc0721 /figs | |
parent | 10559224d661e323fb4fe10957583339a76ed98a (diff) | |
download | inf105-fea3f1a462dc875532282776afd6022211999ac1.tar.gz inf105-fea3f1a462dc875532282776afd6022211999ac1.tar.bz2 inf105-fea3f1a462dc875532282776afd6022211999ac1.zip |
Add a further question to an exercise.
Diffstat (limited to 'figs')
-rw-r--r-- | figs/ex1p2a2.dot | 11 | ||||
-rw-r--r-- | figs/ex1p2a3.dot | 10 | ||||
-rw-r--r-- | figs/ex1p2a4.dot | 14 |
3 files changed, 35 insertions, 0 deletions
diff --git a/figs/ex1p2a2.dot b/figs/ex1p2a2.dot new file mode 100644 index 0000000..1cd6e46 --- /dev/null +++ b/figs/ex1p2a2.dot @@ -0,0 +1,11 @@ +digraph ex1p2a2 { + rankdir="LR"; + node [texmode="math",shape="circle",style="state"]; + q0 [style="state,initial",label="0"]; + q7 [style="state,final",label="7"]; + edge [texmode="math",lblstyle="auto"]; + q0 -> q0 [label="a,b",topath="loop below"]; + q0 -> q7 [label="aa"]; + q0 -> q7 [label="bb",lblstyle="auto,below"]; + q7 -> q7 [label="a,b",topath="loop below"]; +} diff --git a/figs/ex1p2a3.dot b/figs/ex1p2a3.dot new file mode 100644 index 0000000..5c03856 --- /dev/null +++ b/figs/ex1p2a3.dot @@ -0,0 +1,10 @@ +digraph ex1p2a3 { + rankdir="LR"; + node [texmode="math",shape="circle",style="state"]; + q0 [style="state,initial",label="0"]; + q7 [style="state,final",label="7"]; + edge [texmode="math",lblstyle="auto"]; + q0 -> q0 [label="a|b",topath="loop below"]; + q0 -> q7 [label="aa|bb"]; + q7 -> q7 [label="a|b",topath="loop below"]; +} diff --git a/figs/ex1p2a4.dot b/figs/ex1p2a4.dot new file mode 100644 index 0000000..56ee8b6 --- /dev/null +++ b/figs/ex1p2a4.dot @@ -0,0 +1,14 @@ +digraph ex1p2a4 { + rankdir="LR"; + node [texmode="math",shape="circle",style="state"]; + qi [style="state,initial",label="0",texlbl="$\phantom{0}$"]; + q0 [style="state",label="0"]; + q7 [style="state",label="7"]; + qf [style="state,final",label="7",texlbl="$\phantom{7}$"]; + edge [texmode="math",lblstyle="auto"]; + qi -> q0 [label="e",texlbl="$\varepsilon$"]; + q0 -> q0 [label="a|b",topath="loop below"]; + q0 -> q7 [label="aa|bb"]; + q7 -> q7 [label="a|b",topath="loop below"]; + q7 -> qf [label="e",texlbl="$\varepsilon$"]; +} |