Professional Documents
Culture Documents
Week # 04
Anas Bilal
• Solve (S →0S1| ϵ)
Example
• Conversion of language
into grammar
• S →aSb | ϵ
• Derivation tree
Example
Example
Example
Example
CFL to CFG
Types of Finite Automata
String=ab
Accepted Accepting
ba, bba, bbba Will not accept
single b ba
Going to trap
Deterministic Finite Automaton (DFA)
State q1
String=ab
Trap state
Create a self
loop of a at q1
transition function:
DFA VS NFA
DFA
• Dead configuration is NOT allowed
– δ (transition function)