mirror of
https://github.com/Ed94/LangStudies.git
synced 2024-11-10 04:14:53 -08:00
reformated ascii state digrams to use spaces only.
This commit is contained in:
parent
548c2a3032
commit
7197ef4262
@ -41,27 +41,27 @@ NFA : Non-deterministic FA - Allos transition on the same symbol to
|
|||||||
different states
|
different states
|
||||||
|
|
||||||
```
|
```
|
||||||
a->o
|
a->o
|
||||||
/
|
/
|
||||||
->o.1---b-->o
|
->o.1---b-->o
|
||||||
\
|
\
|
||||||
a->o
|
a->o
|
||||||
```
|
```
|
||||||
|
|
||||||
epsilon-NFA : Extension of NFA that allows *epsilon* transitions
|
epsilon-NFA : Extension of NFA that allows *epsilon* transitions
|
||||||
|
|
||||||
```
|
```
|
||||||
a--->o---epsi--->(o)
|
a--->o---epsi--->(o)
|
||||||
/ /
|
/ /
|
||||||
->o----b-->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
|
DFA : A state machine which forbids multiple transitions on the same symbol, and *epsilon* transitions
|
||||||
|
|
||||||
```
|
```
|
||||||
a--->o
|
a--->o
|
||||||
/
|
/
|
||||||
->o----b-->o
|
->o----b-->o
|
||||||
```
|
```
|
||||||
|
@ -17,11 +17,11 @@ Psuedo: `str.start glyph(A) | glyph(B) str.end`
|
|||||||
|
|
||||||
Machine:
|
Machine:
|
||||||
```
|
```
|
||||||
epsilon--> o --A--> o --epsilon
|
epsilon--> o --A--> o --epsilon
|
||||||
/ \
|
/ \
|
||||||
->o ->(o)
|
->o ->(o)
|
||||||
\ /
|
\ /
|
||||||
epsilon--> o --B--> o --epsilon
|
epsilon--> o --B--> o --epsilon
|
||||||
```
|
```
|
||||||
|
|
||||||
## Kleene Closure
|
## Kleene Closure
|
||||||
@ -31,9 +31,9 @@ Psuedo: `str.start glyph(A).repeating str.end`
|
|||||||
|
|
||||||
Machine:
|
Machine:
|
||||||
```
|
```
|
||||||
<------episolon-------
|
<------episolon-------
|
||||||
/ \
|
/ \
|
||||||
->o --epsilon--> o --A--> o --epsilon--> (o)
|
->o --epsilon--> o --A--> o --epsilon--> (o)
|
||||||
\ /
|
\ /
|
||||||
-------------epsilon---------------->
|
-------------epsilon---------------->
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user