Question: ! Exercise 1 0 . 1 . 5 : Suppose we have an encoding of context - free grammars us - ing some finite alphabet.

! Exercise 10.1.5: Suppose we have an encoding of context-free grammars us-
ing some finite alphabet. Consider the following two languages:
is a (coded) CFG, A and B are (coded) variables of
G, and the sets of terminal strings derived from A and B are the same }.
L2={(G1,G2)|G1 and G2 are (coded) CFG's, and {:L(G1)=L(G2)}.
Answer the following:
a) Show that L1 is polynomial-time reducible to L2.
b) Show that L2 is polynomial-time reducible to L1.
c) What do (a) and (b) say about whether or not L1 and L2 are NP-
complete?
 ! Exercise 10.1.5: Suppose we have an encoding of context-free grammars

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!