1.19k likes | 1.33k Views
Non Deterministic Automata. Nondeterministic Finite Accepter (NFA). Alphabet =. Nondeterministic Finite Accepter (NFA). Alphabet =. Two choices. Nondeterministic Finite Accepter (NFA). Alphabet =. Two choices. No transition. No transition. First Choice. First Choice. First Choice.
E N D
Non Deterministic Automata Courtesy Costas Busch - RPI
Nondeterministic Finite Accepter (NFA) Alphabet = Courtesy Costas Busch - RPI
Nondeterministic Finite Accepter (NFA) Alphabet = Two choices Courtesy Costas Busch - RPI
Nondeterministic Finite Accepter (NFA) Alphabet = Two choices No transition No transition Courtesy Costas Busch - RPI
First Choice Courtesy Costas Busch - RPI
First Choice Courtesy Costas Busch - RPI
First Choice Courtesy Costas Busch - RPI
First Choice All input is consumed “accept” Courtesy Costas Busch - RPI
Second Choice Courtesy Costas Busch - RPI
Second Choice Courtesy Costas Busch - RPI
Second Choice No transition: the automaton hangs Courtesy Costas Busch - RPI
Second Choice Input cannot be consumed “reject” Courtesy Costas Busch - RPI
An NFA accepts a string: when there is a computation of the NFA that accepts the string AND all the input is consumed and the automaton is in a final state Courtesy Costas Busch - RPI
Example is accepted by the NFA: “accept” “reject” because this computation accepts Courtesy Costas Busch - RPI
Rejection example Courtesy Costas Busch - RPI
First Choice Courtesy Costas Busch - RPI
First Choice “reject” Courtesy Costas Busch - RPI
Second Choice Courtesy Costas Busch - RPI
Second Choice Courtesy Costas Busch - RPI
Second Choice “reject” Courtesy Costas Busch - RPI
An NFA rejects a string: when there is no computation of the NFA that accepts the string: • All the input is consumed and the • automaton is in a non final state OR • The input cannot be consumed Courtesy Costas Busch - RPI
Example is rejected by the NFA: “reject” “reject” All possible computations lead to rejection Courtesy Costas Busch - RPI
Rejection example Courtesy Costas Busch - RPI
First Choice Courtesy Costas Busch - RPI
First Choice No transition: the automaton hangs Courtesy Costas Busch - RPI
First Choice Input cannot be consumed “reject” Courtesy Costas Busch - RPI
Second Choice Courtesy Costas Busch - RPI
Second Choice Courtesy Costas Busch - RPI
Second Choice No transition: the automaton hangs Courtesy Costas Busch - RPI
Second Choice Input cannot be consumed “reject” Courtesy Costas Busch - RPI
is rejected by the NFA: “reject” “reject” All possible computations lead to rejection Courtesy Costas Busch - RPI
Language accepted: Courtesy Costas Busch - RPI
Lambda Transitions Courtesy Costas Busch - RPI
(read head does not move) Courtesy Costas Busch - RPI
all input is consumed “accept” String is accepted Courtesy Costas Busch - RPI
Rejection Example Courtesy Costas Busch - RPI
(read head doesn’t move) Courtesy Costas Busch - RPI
No transition: the automaton hangs Courtesy Costas Busch - RPI
Input cannot be consumed “reject” String is rejected Courtesy Costas Busch - RPI
Language accepted: Courtesy Costas Busch - RPI
Another NFA Example Courtesy Costas Busch - RPI
“accept” Courtesy Costas Busch - RPI
Another String Courtesy Costas Busch - RPI