Theory of Computation (CS F351) : BITS Pilani

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Theory of Computation (CS F351)

Prof.R.Gururaj
BITS Pilani CS&IS Dept.
Hyderabad Campus
Non-deterministic
Finite Automata (Sec. 2.2 of T1)
Prof.R.Gururaj
BITS Pilani CS&IS Dept.
Hyderabad Campus
What is non-determinism in FA?

It is a powerful feature.

What is this nondeterminism?

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


A Deterministic Finite Automaton (DFA)

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


A Non-deterministic Finite Automaton (NDFA) for the same language

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


NDFA for the same language with null transition

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


Description of an NDFA

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


About NDFA

 NDFA are not meant as realistic models for computers.

 They simply notational generalization of FA, as they simplify


the description of these FA.

 Meaning that we can draw a FA for a language with ease


(less number of states and edges)

 Further, non-determinism is a non-essential feature of FA.

 Ever NDFA can be converted to equivalent DFA.

 We have algorithms that can convert NDFA to its equivalent


DFA.
Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus
Converting a NDFA without
null moves, to equivalent DFA

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


Converting a NDFA without
null moves, to equivalent DFA

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


Converting a NDFA with null
moves, to equivalent DFA

Ex.1

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


Computing E(q) for each qϵK

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


Defining the transitions of DFA

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


Final equivalent DFA

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus


Converting a NDFA with null
moves, to equivalent DFA

Prof.R.Gururaj CSF351 Theory of Computation BITS Pilani, Hyderabad Campus

You might also like