Prove that the following two languages are undecidable. a. OVERLAP CFG = {G,H| G and H are

Question:

Prove that the following two languages are undecidable.

a. OVERLAPCFG = {〈G,H〉| G and H are CFGs where L(G) ∩ L(H) ≠ ⌀}.

Adapt the hint in Problem 5.21.

b. PREFIX-FREECFG = {〈G〉| G is a CFG where L(G) is prefix-free}.


Problem 5.21.

Let AMBIGCFG = {〈G〉| G is an ambiguous CFG}. Show that AMBIGCFG is undecidable. Use a reduction from PCP. Given an instance

 tk P =


of the Post Correspondence Problem, construct a CFG G with the rules


where a1, . . . , ak are new terminal symbols. Prove that this reduction works.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: