1,322 views
5 5 votes
Which is correct?

I) All recursive enumerable language would be recursive, if halting problem is decidable

II) For any CFG, it is undecidable whether or not a particular non terminal "X" in G is reachable

a) I is correct but II is incorrect

b) II is correct but I is incorrect

c) Both are correct

d) Both are incorrect

1 Answer

Best answer
3 3 votes

For statement 1 , we need to know about the reduction theorem :

In   X  <m   Y  , if Y is known to be RE then X will be RE . Also if Y is known to be REC , then X will also be REC . Hence all problems reducible to halting problem will be RE as per the normal case as halting problem is RE but not REC . 

But if Y which is a halting problem in this case were decidable , it means Y is recursive and hence any problem reducing to Y will be recursive specifically rather than simply RE . 

Hence in this case , all recursively enumerable languages will become recursive language .Hence statement 1 is true.

For statement 2 , we know that the given problem has algorithm to solve and hence decidable . In this first we have to identify the start symbol , then identify the set of non terminals that are part of production of this start symbol ; directly or indirectly . Hence we can say whether a given non terminal in the context free grammar G is reachable or not.

Hence the given problem is decidable and this makes statement 2 false. Thus A) should be the correct option.

• selected by
Position:
Show:

Related questions

1 1 vote
1 1 answer
494
494 views
srestha asked Jun 15, 2018
494 views
Now define D , the diagonal set of strings:$D=\left \{ w\epsilon \Sigma ^{*} \right \}$ where $w$ is not in $f\left ( w \right )$Call the correspondence $f$ is countable...
6 6 votes
4 4 answers
4.0k
4.0k views
nikhil_cs asked Jan 18, 2018
4,010 views
Since Recursive languages are closed under intersection, therefore it decidable. Am I wrong?
2 2 votes
0 0 answers
1.6k
1.6k views
reena_kandari asked Nov 12, 2017
1,575 views
Question no:$1$ "Any problem whose domain is finite is always Decidable"lets take a TM,$M$ and finite domain of problem i.e. finite set of strings for eg. {a,abaa,bba}, ...
0 0 votes
0 0 answers
342
342 views
Xylene asked Sep 9, 2017
342 views
I think that answer should be decidable.