edited by
418 views
0 votes
0 votes
Show that the language $\overline{L_A}\cup \overline{L_B}$ is a regular language if and only if it is the set of all strings over its alphabet;i.e., if and only if the instance $(A,B)$ of PCP has no solution. Thus, prove that it is undecidable whether or not a CFG generates a regular language. Hint: Suppose there is a solution to PCP; say the string $wx$ is missing from $\overline{L_A}\cup \overline{L_B}$ where  $w$ is a string from the alphabet $\Sigma$ of this PCP instance, and $x$ is the reverse of the corresponding string of index symbols. Define a homomorphism $h(0) = w$ and $h(1) = x.$ Then what is  $h^{-1}(\overline{L_A}\cup \overline{L_B})?$ Use the fact that regular sets are closed under inverse homomorphism, complementation and the pumping lemma for regular sets to show that $\overline{L_A}\cup \overline{L_B}$ is not regular.
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
3
admin asked Apr 6, 2019
210 views
Give an algorithm to tell for two regular languages $L_{1}$ and $L_{2}$ over the same alphabet $\sum,$ whether there is any string in $\sum^{*}$ that is in neither $L_{1}...
0 votes
0 votes
0 answers
4
admin asked Apr 6, 2019
213 views
Give an algorithm to tell whether a regular language $L$ contains at least $100$ strings.