Question: Prove that the following two languages are undecidable. a. OVERLAP CFG = {G,H| G and H are CFGs where L(G) L(H) }. Adapt

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

tk P =


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

tk P =

Step by Step Solution

3.52 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

First Step 94 T ranslation Synthesis of proteins is one of a cells most energy consuming metabolic processes Proteins account for more mass than any o... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction theory computation Questions!