Unit-1 Toc
Unit-1 Toc
ONLINE CLASS
PRESENTED BY
Mr. K. SANKAR GANESH
AP/CSE
OBJECTIVES:
• Proofs
• Deterministic Finite Automata
• Non-deterministic Finite Automata
• Finite Automata with Epsilon Transitions
• Equivalence of NFA-DFA- e-NFA
• Regular Expressions
• FA and Regular Expressions
• Proving Languages not to be regular
• Equivalence and Minimization of
Automata
Presented By Mr.K.Sankar Ganesh, HOD&AP/CSE, KNEC, VELLO
RE
UNIT III
CONTEXT FREE GRAMMAR AND PUSH
DOWN AUTOMATA
• CFG
• Derivation
• Parse Trees
• Ambiguity
• Pushdown
Defn. language acceptance, moves
design of PDA
Equivalence of PDA and CFG
Presented By Mr.K.Sankar Ganesh, HOD&AP/CSE, KNEC, VELLO
RE
UNIT IV
NORMAL FORMS AND TURING MACHINES
• COMPUTER
• கணினி
• కంప్యూటర్
• കമ്പ്യൂട്ടർ
الحاسوب
Example:
1, a, b, #
Positive Closure
where:
1.Q: finite set of states
2.∑: finite set of the input symbol
3.q0: initial state
4.F: final state
5.δ: Transition function
1. DFA ?
2. NFA ?
2. NFA
To do this, we will use a method, which can remove all the ε transition from
given NFA.
The method will be:
STEP 1: Find out all the ε transitions from each state from Q.
That will be called as ε-closure{qi} where qi ∈ Q.
STEP 3: Repeat Step-2 for each input symbol and each state of given NFA.
Using the resultant states, the transition table for equivalent NFA without ε can
be built. Presented By Mr.K.Sankar Ganesh, HOD&AP/CSE, KNEC, VELLO
RE
ε-closure: ε-closure for a given state A means a set of states
which can be reached from the state A with only ε(null) move
including the state A itself.
δ^(q0, ε) = ε- closure(q0)
1.ε-closure(q0) = {q0}
2.ε-closure(q1) = {q1, q2}
3.ε-closure(q2) = {q2}
Step 1: We will take the ε-closure for the starting state of NFA as a
starting state of DFA.
Step 2: Find the states for each input symbol that can be traversed
from the present. That means the union of transition value and their
closures for each state of NFA present in the current state of DFA.
Step 3: If we found a new state, take it as current state and repeat
step 2.
Step 4: Repeat Step 2 and Step 3 until there is no new state present
in the transition table of DFA.
Step 5: Mark the states of DFA as a final state which contains the
final state of NFA. Presented By Mr.K.Sankar Ganesh, HOD&AP/CSE, KNEC, VELLO
RE
Example 1:
Step 1: Initially Q’ = ɸ.
Step 3: For each state in Q’, find the possible set of states for each input
symbol using transition function of NFA. If this set of states is not in Q’, add it
to Q’.