diff --git a/CH3HW/Ch3HW.html b/CH3HW/Ch3HW.html index 6e523b0..a5f0e36 100644 --- a/CH3HW/Ch3HW.html +++ b/CH3HW/Ch3HW.html @@ -351,16 +351,48 @@ pre[data-line] .line-highlight[data-end]:after {

a

- +
NFA (a∣b)∗(a|b)*
+ +

step 2

+
Transition Table
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Stateaba + ϵ\epsilonb + ϵ\epsilon
X: {1,2,3,6}{4}{7}{4,3,2,6,8}{7,3,2,6,8}
Y: {4,3,2,6,8}{4}{7}{4,3,2,6,8}{7,3,2,6,8}
Z: {7,3,2,6,8}{4}{7}{4,3,2,6,8}{7,3,2,6,8}
+
DFA
+ +

A

diff --git a/CH3HW/Ch3HW.md b/CH3HW/Ch3HW.md index c1d984d..f31d48b 100644 --- a/CH3HW/Ch3HW.md +++ b/CH3HW/Ch3HW.md @@ -32,8 +32,20 @@ $$0 \Rightarrow (\epsilon) 3 \Rightarrow (\epsilon) 2 \Rightarrow (\epsilon) 1 \ ### 3.7.3 #### a -- $a|b$ -![step 1](thompson1.png) -- $(a|b)*$ -![step 2](thompson2.png) \ No newline at end of file +##### NFA $(a|b)*$ + +![step 2](thompson2.png) + +##### Transition Table + +| State | a | b | a + $\epsilon$ | b + $\epsilon$ | +|----------------|-----|-----|-------------------|-------------------| +| X: {1,2,3,6} | {4} | {7} | {4,3,2,6,8} | {7,3,2,6,8} | +| Y: {4,3,2,6,8} | {4} | {7} | {4,3,2,6,8} | {7,3,2,6,8} | +| Z: {7,3,2,6,8} | {4} | {7} | {4,3,2,6,8} | {7,3,2,6,8} | + + +##### DFA + +![A](thompson1.png) \ No newline at end of file diff --git a/CH3HW/thompson1.png b/CH3HW/thompson1.png index 0f7eb90..a0889ad 100644 Binary files a/CH3HW/thompson1.png and b/CH3HW/thompson1.png differ diff --git a/CH3HW/thompson1_old.png b/CH3HW/thompson1_old.png new file mode 100644 index 0000000..0f7eb90 Binary files /dev/null and b/CH3HW/thompson1_old.png differ diff --git a/CH3HW/thompson2.png b/CH3HW/thompson2.png index 4c430ef..c242b67 100644 Binary files a/CH3HW/thompson2.png and b/CH3HW/thompson2.png differ diff --git a/CH3HW/thompson2_old.png b/CH3HW/thompson2_old.png new file mode 100644 index 0000000..4c430ef Binary files /dev/null and b/CH3HW/thompson2_old.png differ