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 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
``` ```

View File

@ -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---------------->
``` ```