reformated ascii state digrams to use spaces only.

This commit is contained in:
Edward R. Gonzalez 2022-07-16 20:01:13 -04:00
parent 548c2a3032
commit 7197ef4262
2 changed files with 15 additions and 15 deletions

View File

@ -41,27 +41,27 @@ NFA : Non-deterministic FA - Allos transition on the same symbol to
different states
```
a->o
a->o
/
->o.1---b-->o
\
a->o
a->o
```
epsilon-NFA : Extension of NFA that allows *epsilon* transitions
```
a--->o---epsi--->(o)
/ /
a--->o---epsi--->(o)
/ /
->o----b-->epsi--->o
\
a-->o--epsi-->(o)
a-->o--epsi-->(o)
```
DFA : A state machine which forbids multiple transitions on the same symbol, and *epsilon* transitions
```
a--->o
a--->o
/
->o----b-->o
```

View File

@ -17,11 +17,11 @@ Psuedo: `str.start glyph(A) | glyph(B) str.end`
Machine:
```
epsilon--> o --A--> o --epsilon
/ \
->o ->(o)
\ /
epsilon--> o --B--> o --epsilon
epsilon--> o --A--> o --epsilon
/ \
->o ->(o)
\ /
epsilon--> o --B--> o --epsilon
```
## Kleene Closure
@ -31,9 +31,9 @@ Psuedo: `str.start glyph(A).repeating str.end`
Machine:
```
<------episolon-------
/ \
<------episolon-------
/ \
->o --epsilon--> o --A--> o --epsilon--> (o)
\ /
-------------epsilon---------------->
\ /
-------------epsilon---------------->
```