HN ATC Notes Module 4 Part3
HN ATC Notes Module 4 Part3
6. Decidable questions
6.1 Membership
Given a context free language L and a string w, there exists a decision procedure that answers
the questions, “is w in L?”. There are two approaches:
Using facts about every derivation that is produced by a grammar in Chomsky normal form, we
can construct an algorithm that explores a finite number of derivation paths and finds one that
derives a particular string w iff such a path exists.
While not all PDAs halt, it is possible for any context-free language L, to craft a PDA M that is
guaranteed to halt on all inputs and that accepts all strings in L and rejects all strings that are
not in L.
Proof