Question: Question 4 . Consider the problem of determining whether a DFA accepts some string with more 1 s than 0 s . Prove that is
Question Consider the problem of determining whether a DFA accepts some string with more than s Prove that is a DFA and has more s than is decidable.
One way to do this is to build a PDA recognizing the intersection of a regular language and a CFL Unlike REG, CFL is not closed under intersection. However, the following argument constructively establishes that the intersection of any regular language with any CFL is contextfree. Let and be recognized by DFA and PDA respectively. Define a new PDA where for any ain the transition is the set of all such that if ain or if and This PDA simultaneously simulates and accepting if and only if there is an accepting computation history on both and Hence
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
