











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Formal Language and Automata Theory
Motivations Problems:
1. Given a DFA M with k states, is it possible to find an equivalent DFA M’ (I.e., L(M) = L(M’)) with state number fewer **than k?
Inaccessible states are redundant M : any DFA with n inaccessible states p 1 ,p 2 ,…,p n
Let M 1
2
n+ are DFAs s.t. DFA M i+ is constructed from M i by removing pi from Mi. I.e., M - rm(p 1
1
- rm(p 2
2
n
- rm(p n
n By previous lemma: L(M) = L(M 1
n ) and M n has no inaccessible states. Conclusion: Removing all inaccessible sates simultaneously from a DFA will not affect the language it accepts. In fact the conclusion holds for all NFAs we well. Pf: left as an exercise. Problem: Given a DFA (or NFA), how to find all inaccessible states?
How to find all accessible states A state is said to be accessible if it is not inaccessible. Note: the set of accessible states A(M) of a NFA M is {q| $ x S *, q D ( S ,x) } and hence can be defined by induction. Let Ak be the set of states accessible from initial states of M by at most k steps of transitions. I.e., A k = {q| $ x S * with |x| k and q D ( S ,x) } What is the relationship b/t A(M) and A k s? sol: A(M) = U k≥
k
. Moreover A k
k+ What is A 0 and the relationship b/t A k and A k+
Formal definition: M=<Q, S , d , S ,F> : any NFA. Basis: Every start state q S is accessible.(A 0