Skip to content
GATEiit

GATE CSE 2018 Q46: Decidability of four problems on grammars, Turing machines and NFAs

Syllabus topic: Turing machines and undecidability

Question

Consider the following problems. L(G) denotes the language generated by a grammar G. L(M) denotes the language accepted by a machine M.

(I) For an unrestricted grammar G and a string w, whether w∈L(G)

(II) Given a Turing machine M, whether L(M) is regular

(III) Given two grammars G1 and G2, whether L(G1)=L(G2)

(IV) Given an NFA N, whether there is a deterministic PDA P such that N and P accept the same language.

Which one of the following statements is correct?

Try it: multiple choice: exactly one correct option

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

Answer: D (official GATE 2018 final answer key)

Concept used: Membership for unrestricted grammars and non-trivial properties of Turing machine languages (Rice's theorem) are undecidable, as is grammar equivalence; every regular language has a DPDA.

Concept notes

Loading notes…

First step: Relate each problem to a known result: unrestricted grammars are equivalent to Turing machines, apply Rice's theorem to II, and ask whether every NFA language is accepted by some DPDA.

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 2018 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key