Skip to content
GATEiit

GATE CSE 2017 Session 1 Q49: f computable iff L_f = {x#f(x)} is recursive

Syllabus topic: Turing machines and undecidability

Question

Let A and B be finite alphabets and let # be a symbol outside both A and B. Let f be a total function from A∗ to B∗. We say f is computable if there exists a Turing machine M which given an input x in A∗, always halts with f(x) on its tape. Let Lf denote the language {x#f(x)∣x∈A∗}. Which of the following statements is true:

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: A (official GATE 2017 final answer key)

Concept used: For a total function, deciding the graph Lf and computing f are equivalent: compute f(x) and compare, or enumerate candidate outputs y and test x#y with the decider.

Concept notes

Loading notes…

First step: Show both directions: from a Turing machine for f build a decider for Lf; from a decider for Lf (and since f is total) search through all y∈B∗ until x#y is accepted. This also rules out C and D.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Turing machines and undecidability

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key