860 views
2 votes
2 votes
Which of the following decision problem is undecidable?

I)Given a CFG $G=\left ( N,\Sigma ,P,S \right )$ and a string $x\epsilon \Sigma ^{*}$, does $x\epsilon L\left ( G \right )$?

II) Given CFG $G_{1},G_{2}$, Is $L\left ( G_{1} \right )=L\left (G_{2} \right )$?

1 Answer

1 votes
1 votes

1) first one is membership problem of CFG.which is decidable.

2) second one is equvalence problem of  CFG . which is undecidable.

Related questions

0 votes
0 votes
0 answers
3
Na462 asked Jan 21, 2019
795 views
0 votes
0 votes
0 answers
4
Ayush Upadhyaya asked Jan 13, 2019
446 views
From http://www.cs.rice.edu/~nakhleh/COMP481/final_review_sp06_sol.pdf $L_{26}=\{<M>|$ M is a TM such that both L(M) and $\lnot L(M)$ are infinite $\}$I was unable to get...