660 likes | 793 Views
Formal Languages Finite Automata. Chomsky Hierarchy. Type-0 : Unrestricted;recursively enumerated; phrase structured; turing m/c Type-1: CSL;LBA Type-2: CFL;PDA Type-3:RL:FA. Finite Automaton. Input. String. Output. “Accept” or “Reject”. Finite Automaton. Transition Graph.
E N D
Formal Languages Finite Automata
Chomsky Hierarchy • Type-0 : Unrestricted;recursively enumerated; phrase structured; turing m/c • Type-1: CSL;LBA • Type-2: CFL;PDA • Type-3:RL:FA
Finite Automaton Input String Output “Accept” or “Reject” Finite Automaton
Transition Graph initial state accepting state transition state
Initial Configuration Input String
Input finished accept
Input finished reject
Rejection reject
Input finished accept
Input finished reject
Languages Accepted by FAs • FA • Definition: • The language contains • all input strings accepted by • = { strings that bring • to an accepting state}
Example: L(M) = ? accept
Example accept
Example: L(M) = ? accept accept accept
Example accept accept accept
Example: L(M) = ? trap state accept
Example trap state accept
Formal Definition • Finite Automaton (FA) : set of states : input alphabet : transition function : initial state : set of accepting states