CH4 Flashcards
(11 cards)
Define regular expression
is the notation for describing lexical analyzer softwares.
What does the implementation of regular expressions require?
DFA simulation
is it important and to convert NFA to DFA?
Yes
Why is it important and to convert NFA to DFA?
Because DFA is more straightforward than NFA.
What technique do we use to convert from NFA to DFA?
An algorithm of Subset Construction
What is the general idea behind Subset Construction?
each DFA state correspond to a set of NFA states.
represent NFA and DFA as a five tuple formal definition.
NFA =====> M = (Q,∑,∂, q0, F)
DFA====> M’ = (Q’,∑,∂’, q0’, F’)
What is the input of the subset construction?
NFA “N”
What is the output of the subset construction?
a DFA “D” accepting the same language as N
T/F
the subset construction eliminates and doesnt deal with epsioln.
F
the subset construction deals with epsilon transitions of N properly .
What are the operations on NFA states?
e-closure(s) Set of NFA states reachable from NFA state s on e-transitions alone.
e-closure(T) Set of NFA states reachable from some NFA state s in set T on e-transitions alone; =Us in T e-closure(s).
move (T,a) Set of NFA states to which there is a transition on input symbol a from some state s in T.