274 views
0 0 votes

Which of the following problems is/are UNDECIDABLE?

  • I. Given a Context-Free Grammar $G$, whether $G$ contains any useless symbols (symbols that can never appear in the derivation of a terminal string).
     
  • II. Given a Turing Machine $M$, whether the language $L(M)$ is Recursive.
     
  • III. Given a Pushdown Automaton $P$ and a Deterministic Finite Automaton (DFA) $A$, whether $L(P)=L(A)$.
     
  • IV. Whether a given instance of the Post's Correspondence Problem (PCP) has a match.

 

  1. I AND III ONLY
     
  2. I, II, AND III
     
  3. II, III, AND IV
     
  4. I, II, III, AND IV

1 Answer

0 0 votes

I. Given a CFG $G$, whether $G$ contains any useless symbols.

  • DECIDABLE. A useless symbol is one that is either non-generating (cannot derive a terminal string) or non-reachable (cannot be reached from the Start symbol). There are standard, terminating algorithms to find both sets of symbols. Any symbol not in both sets is useless. This is a standard procedure in compiler design.

II. Given a TM $M$, whether the language $L(M)$ is Recursive.

  • UNDECIDABLE. This is a non-trivial property of the language $L(M)$, so we can apply Rice's Theorem. The property "is recursive" is non-trivial because some recursively enumerable languages are recursive (e.g., $\emptyset, a^n b^n$ ), and some are not (e.g., the Halting Problem). Since the property is non-trivial, it is undecidable.

III. Given a PDA $P$ and a DFA $A$, whether $L(P)=L(A)$.

  • UNDECIDABLE. This is the equivalence problem between a Context-Free Language (CFL) and a Regular Language (RL). This problem is known to be undecidable. We can prove this by reducing the Universality Problem for CFLs (which is undecidable) to it. The Universality Problem asks: "Given a PDA $P$, is $L(P)=\Sigma^*$ ?" We can solve this if we can solve Problem III: We just create a simple DFA $A$ that accepts $\Sigma^*$, and then ask our decider for Problem III if $L(P)=L(A)$. Since the Universality Problem is undecidable, Problem III must also be undecidable.

IV. Whether a given instance of PCP has a match.

  • UNDECIDABLE. This is the Post's Correspondence Problem (PCP). It is a classic and very famous undecidable problem, often used to prove other problems (like ambiguity in CFGs) are undecidable.
Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
317
317 views
GO Classes asked Nov 8, 2025
317 views
Which of the following problems are decidable?I. Given a Turing Machine $M$ and an input string $w$, whether $M$ halts on $w$ within $|w|^2+$ 100 steps. II. Given a Conte...
1 1 vote
1 1 answer
328
328 views
GO Classes asked Nov 8, 2025
328 views
Which of the following are decidable?I. Whether a given string $w$ belongs to a given Context-Sensitive Language $L$.II. Whether the language accepted by a given Turing M...
4 4 votes
2 2 answers
463
463 views
GO Classes asked Nov 8, 2025
463 views
CONSIDER A DFA OVER $\Sigma=\{a, b\}$ THAT ACCEPTS A STRING $w$ IF AND ONLY IF $w$ CONTAINS THE SUBSTRING "ab" AND DOES NOT CONTAIN THE SUBSTRING "ba".WHAT IS THE MINIMUM...
2 2 votes
1 1 answer
316
316 views
GO Classes asked Nov 8, 2025
316 views
CONSIDER A DFA OVER $\Sigma=\{a, b\}$ ACCEPTING ALL STRINGS $w$ THAT SATISFY BOTH OF THE FOLLOWING CONDITIONS:1. THE NUMBER OF $a$ 'S IN $w$ IS DIVISIBLE BY 4.2. THE (NUM...