-1

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

1 Answers1

1

This is an option

enter image description here

an alternative method to solve this:

  1. Convert to Right Linear Grammar G

           G = (N, T, P, S)

           N = no terminals

           T = terminals

           P = productions

           S = Initial symbol

  2. Your new automaton A is

           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