508 views
1 votes
1 votes
Consider 2 problems X & Y. Now if X is reducible to Y.What does this mean.please explain with an example.

1 Answer

1 votes
1 votes

X is reducible to Y-->

Example-

Problem X:

"Let L be a Regular Language And G be a Context free grammar. Then whether L is a subset of the language generated by G is decidable or not?"

Problem Y:

"Let G & G' be two context free grammars. Then whether Language generated by G i.e. L(G) is a subset of language generated by L(G')  is decidable or not?

 

Now here we can clearly see that X is reducible to Y, because if we are provided with a Regular language we can easily get equivalent CFG.

So just by converting Regular Language to equivalent Context free grammar we can reduce problem x to problem y.

And we all know that problem y described above is undecidable, that's why problem x is undecidable.

 

Hope this helped. You all are requested to comment if anything described above is conceptually incorrect.

Thank u!!

Related questions

3 votes
3 votes
2 answers
2
2 votes
2 votes
2 answers
3
MIRIYALA JEEVAN KUMA asked Jan 21, 2018
1,293 views
Let L be a DCFL and R is a regular language. Consider the below given problems.P: Is L=R ?Q: Is R ⊆L ?Discuss decidablity of P and Q.
0 votes
0 votes
0 answers
4