Which of the following problems are undecidable?
View worked solution
Answer: B;D
To determine which of the problems are undecidable, let us analyze each option:
- Membership problem in context-free languages: Given a context-free grammar and a string , deciding whether is decidable. For example, the Cocke-Younger-Kasami (CYK) algorithm can solve this in time.
- Whether a given context-free language is regular: Given a context-free grammar , determining whether there exists an equivalent regular language is undecidable. This is a standard undecidable property of CFLs shown via reduction from the Post Correspondence Problem (PCP) or Turing machine computation histories.
- Whether a finite state automaton halts on all inputs: A finite state automaton (DFA/NFA) processes exactly one input symbol per step and has no mechanism to loop infinitely without consuming input. Thus, it always halts on any finite input string, making this problem trivially decidable.
- Membership problem for type 0 languages: Type 0 languages are recursively enumerable (RE) languages, which are recognized by Turing machines. Deciding whether a string belongs to a type 0 language is equivalent to the Turing machine acceptance problem (), which is famously undecidable.
Thus, the undecidable problems are B and D.
Free practice · Your answers on this page are not saved.
