From fea3f1a462dc875532282776afd6022211999ac1 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Thu, 7 Dec 2017 12:21:07 +0100 Subject: Add a further question to an exercise. --- figs/ex1p2a2.dot | 11 +++++++++++ figs/ex1p2a3.dot | 10 ++++++++++ figs/ex1p2a4.dot | 14 ++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 figs/ex1p2a2.dot create mode 100644 figs/ex1p2a3.dot create mode 100644 figs/ex1p2a4.dot (limited to 'figs') 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$"]; +} -- cgit v1.2.3