diff options
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$"]; +} |