I'm having trouble drawing an automata with this description S ← abb|aab|aaabbb|aaaS|Sbbb.
I have tried drawing the abb and aab states but am having trouble making this into one automaton
I'm having trouble drawing an automata with this description S ← abb|aab|aaabbb|aaaS|Sbbb.
I have tried drawing the abb and aab states but am having trouble making this into one automaton
This is an option
an alternative method to solve this:
G = (N, T, P, S)
N = no terminals
T = terminals
P = productions
S = Initial symbol
A = (N U {qf}, T, d, S, {qf})
qf is a new element
d:
Y belongs d(X, a) if X -> aY belongs to P
qf belongs d(X, a) if X -> a belongs of P