Skip to content
GATEiit

GATE CSE 2017 Session 2 Q51: Which decision problems on regex, CFG and TM are undecidable

Syllabus topic: Turing machines and undecidability

Question

Let L(R) be the language represented by regular expression R. Let L(G) be the language generated by a context free grammar G. Let L(M) be the language accepted by a Turing machine M. Which of the following decision problems are undecidable?

I. Given a regular expression R and a string w, is w∈L(R)?

II. Given a context-free grammar G, is L(G)=∅?

III. Given a context-free grammar G, is L(G)=Σ∗ for some alphabet Σ?

IV. Given a Turing machine M and a string w, is w∈L(M)?

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 2017 final answer key)

Concept used: Membership for regular languages and emptiness for CFGs are decidable; universality for CFGs and membership for Turing machines are undecidable.

Concept notes

Loading notes…

First step: Go through each problem and recall whether an algorithm (e.g. running a DFA, marking generating variables) always halts with the answer.

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