Computability questions

Q39

GATE CS 2017 CS-1ComputabilityMCQ2 marks−2/3 if wrong
Let AA and BB be finite alphabets and let #\# be a symbol outside both AA and BB. Let ff be a total function from A∗A^* to B∗B^*. We say ff is computable if there exists a Turing machine MM which given an input xx in A∗A^*, always halts with f(x)f(x) on its tape. Let LfL_f denote the language {x#f(x)∣x∈A∗}\lbrace x\#f(x) \mid x \in A^* \rbrace.
Which of the following statements is true:
Show answer without attempting

Answer: A

Q41

GATE CS 2017 CS-2ComputabilityMCQ2 marks−2/3 if wrong
Let L(R)L(R) be the language represented by regular expression RR. Let L(G)L(G) be the language generated by a context free grammar GG. Let L(M)L(M) be the language accepted by a Turing machine MM.
Which of the following decision problems are undecidable?

I. Given a regular expression RR and a string ww, is w∈L(R)w \in L(R)?
II. Given a context-free grammar GG, is L(G)=∅L(G) = \emptyset?
III. Given a context-free grammar GG, is L(G)=Σ∗L(G) = \Sigma^* for some alphabet Σ\Sigma?
IV. Given a Turing machine MM and a string ww, is w∈L(M)w \in L(M)?
Show answer without attempting

Answer: D

0/20 correct0 marks

Related topics in Theory of Computation