











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Some concept of Automata and Complexity Theory are Administrivia, Closure Properties, Context-Free Grammars, Decision Properties, Deterministic Finite Automata, Intractable Problems, More Undecidable Problems. Main points of this lecture are: Nondeterminism Two, Alphabet, Strings, Sketch of Answer, Last Time, Guess, Symbols, Sequence, Accept, Nondeterministic Algorithm
Typology: Slides
1 / 19
This page cannot be seen from the preview
Don't miss anything!
Example from last time
0
1
…
…
qε
q 0
q 1
q 00
q 10
q 01
q 11
q 000 q 001
q 101
q 111
0 1 0 1
0 1
1
1
1
1
0
Nondeterminism
Nondeterministic finite automaton
(^1 0 )
0, 1 q 0 q 1 q 2 q 3
Semantics of guessing
(^1 0 )
0, 1 q 0 q 1 q 2 q 3
Semantics of guessing
(^1 0 )
0, 1 q 0 q 1 q 2 q 3
Formal definition
Example
(^1 0 )
0, 1 q 0 q 1 q 2 q 3
alphabet Σ = {0, 1} start state Q = {q 0 , q 1 , q 2 , q3} initial state q accepting states F = {q 3 }
states
inputs (^0 ) q 0 q (^1) q (^2)
{q 0 , q 1 }
transition function δ:
q 3
{q0} {q 2 } ∅ ∅
∅ {q 3 } ∅
NFAs are as powerful as DFAs
NFAs are as powerful as DFAs
Simulation example
(^1 )
0, 1
NFA:^ q 0 q 1 q 2
DFA: q 0 1 q0 or q (^1)
1
q0 or q (^2) 1
0 0 0
General method
states q 0 , q^1 , …, q n ∅, {q^0 }, {q^1 }, {q^0 ,q^1 }, …, {q^0 ,…,q n } one for each subset of states in the NFA initial state q^0 {q^0 }
transitions δ δ’({q i 1 ,…,q ik },^ a ) = δ(q i 1 , a ) ∪…∪ δ(q ik , a )
accepting states
F ⊆ Q F ’ = { S :^ S^ contains some state in^ F }
Exercises