From c20d0faea32e9310aee14dda85292fa207e98414 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Wed, 1 Nov 2017 00:57:40 +0100 Subject: Add another example of state elimination (limited-depth balanced parentheses). --- figs/example10.dot | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 figs/example10.dot (limited to 'figs') diff --git a/figs/example10.dot b/figs/example10.dot new file mode 100644 index 0000000..91775c5 --- /dev/null +++ b/figs/example10.dot @@ -0,0 +1,18 @@ +digraph example10 { + rankdir="LR"; + node [texmode="math",shape="circle",style="state"]; + q0 [style="state,initial,final,accepting below",label="0"]; + q1 [style="state",label="1"]; + q2 [style="state",label="2"]; + q3 [style="state",label="3"]; + q4 [style="state",label="4"]; + edge [texmode="math",lblstyle="auto"]; + q0 -> q1 [label="a"]; + q1 -> q0 [label="b"]; + q1 -> q2 [label="a"]; + q2 -> q1 [label="b"]; + q2 -> q3 [label="a"]; + q3 -> q2 [label="b"]; + q3 -> q4 [label="a"]; + q4 -> q3 [label="b"]; +} -- cgit v1.2.3