FORMAL LANGUAGE & AUTOMATA THEORY

100406
Back to FORMAL LANGUAGE & AUTOMATA THEORY

Module 5: Undecidability

  1. Q1a. Which of the following statements is/are false? A. For every nondeterministic TM, an equivalent deterministic TM exists. B. Turing recognizable languages are closed under union and complementation. C. Turing decidable languages are closed under intersection and complementation. D. Turing recognizable languages are closed under union and intersection. (i) A and D only (ii) A and C only (iii) B only (iv) C only20212m

    Module 5: Undecidability

    Which of the following statements is/are false?

    A. For every nondeterministic TM, an equivalent deterministic TM exists.
    B. Turing recognizable languages are closed under union and complementation.
    C. Turing decidable languages are closed under intersection and complementation.
    D. Turing recognizable languages are closed under union and intersection.

    (i) A and D only
    (ii) A and C only
    (iii) B only
    (iv) C only

    View this question on its own page →
    Worked Solution

    Answer

    Correct Option: (iii) B only

    Explanation

    Evaluate each statement:

    A. For every nondeterministic TM, an equivalent deterministic TM exists.

    True. Turing Machines are deterministic simulatable: a DTM can simulate an NTM via BFS over computation tree with at most exponential slowdown. NTM does not increase power, unlike for PDA. NTM=DTMNTM = DTM in language power.

    B. Turing-recognizable (RE) languages are closed under union and complementation.

    False.

    • RE is closed under union and intersection: if M1M_1 recognizes L1L_1 and M2M_2 recognizes L2L_2, a NTM can dovetail to recognize L1∪L2L_1 \cup L_2 and L1∩L2L_1 \cap L_2.
    • RE is NOT closed under complement. If LL is RE but not recursive, L‾\overline{L} is not RE. Example ATMA_{TM} is RE, ATM‾\overline{A_{TM}} is not RE. So the conjunction “union and complementation” fails.

    C. Turing-decidable (Recursive) languages are closed under intersection and complementation.

    True. Recursive languages are decidable by a TM that always halts. Deciders can be complemented by swapping accept/reject, and intersected via product construction. They are closed under all Boolean operations: union, intersection, complement, difference.

    D. Turing-recognizable languages are closed under union and intersection.

    True. As noted in B, RE retains closure under union and intersection, only complement fails.

    Summary

    Statement Truth
    A True
    B False
    C True
    D True

    Only B is false.

    Final Answer

    B only is false → Option (iii).

  2. Q1h. A recursively enumerable language L is recursive if: (i) L' is recursively enumerable (ii) every sequence of moves of T halts (iii) Both (i) and (ii) (iv) None of the above20222m

    Module 5: Undecidability

    A recursively enumerable language LL is recursive if:

    (i) L′L' is recursively enumerable
    (ii) every sequence of moves of TT halts
    (iii) Both (i) and (ii)
    (iv) None of the above

    View this question on its own page →
    Worked Solution

    Answer

    Correct Option: (i) L′L' is recursively enumerable (equivalently (iii) Both if TT is decider)

    Explanation

    Theorem (Sipser): RE language LL is recursive (decidable) iff both LL and L‾\overline{L} are RE.

    • If LL is RE and L‾\overline{L} is RE, then dovetail enumerators for LL and L‾\overline{L}; whichever enumerates ww first decides.
    • Formal: LL recursive ⇔ LL RE and L′L' RE.

    Option (ii) “every sequence of moves halts” is characterization of decider (always halts), also true for recursive LL but not the standard RE condition. Option (i) is the textbook criterion.

    If exam lists (iii) Both (i) and (ii), that is also correct for decider TM. Most keys mark (i) or (iii).

    Final Answer

    LL recursive iff L′L' is RE → Option (i) (and (iii) Both if inclusive).

  3. Q1h. Which of the following problems is undecidable? (i) DFA acceptance (ii) NFA acceptance (iii) The Halting Problem (iv) Regular expression matching20242m

    Module 5: Undecidability

    Which of the following problems is undecidable?

    (i) DFA acceptance
    (ii) NFA acceptance
    (iii) The Halting Problem
    (iv) Regular expression matching

    View this question on its own page →
    Worked Solution

    Answer

    Correct Option: (iii) The Halting Problem

    Explanation

    Decidability:

    Problem Decidable?
    DFA acceptance w∈L(DFA)w \in L(DFA)? Decidable — simulate DFA O(∣w∣)O(|w|)
    NFA acceptance Decidable — subset simulation or convert to DFA
    Regex matching w∈L(R)w \in L(R)? Decidable — convert to DFA/NFA
    Emptiness L(DFA)=∅L(DFA)=\emptyset? Decidable
    Halting Problem MM halts on ww? Undecidable (Turing 1936)

    Proof sketch: Assume H(⟨M,w⟩)H(\langle M,w\rangle) decides halting, diagonalize with D(⟨M⟩)=D(\langle M\rangle)= loop if MM halts on ⟨M⟩\langle M\rangle else halt. D(⟨D⟩)D(\langle D\rangle) contradicts.

    Final Answer

    Undecidable is Halting Problem → Option (iii).

  4. Q8a. Show that the function: f(x,y) = x + y is primitive recursive.20217m

    Module 5: Undecidability

    Show that the function:

    f(x,y)=x+y f(x,y) = x + y

    is primitive recursive.

    View this question on its own page →
  5. Q9a. Write a short note on the Post Correspondence Problem.20213.5m

    Module 5: Undecidability

    Write a short note on the Post Correspondence Problem.

    View this question on its own page →
  6. Q9a. Prove that the halting problem for Turing machines is recursively undecidable.20227m

    Module 5: Undecidability

    Prove that the halting problem for Turing machines is recursively undecidable.

    View this question on its own page →
  7. Q9a. Write short notes on: Post Correspondence Problem.20237m

    Module 5: Undecidability

    Write short notes on: Post Correspondence Problem.

    View this question on its own page →
  8. Q9a. Write a short note on Rice's Theorem with an application.20254.66m

    Module 5: Undecidability

    Write a short note on Rice's Theorem with an application.

    View this question on its own page →
  9. Q9b. Write short notes on: 1. Post Correspondence Problem (PCP) 2. NP-hard problem20247m

    Module 5: Undecidability

    Write short notes on:

    1. Post Correspondence Problem (PCP)
    2. NP-hard problem
    View this question on its own page →
  10. Q9c. Write short notes on: NP-hard and NP-complete problems.20237m

    Module 5: Undecidability

    Write short notes on: NP-hard and NP-complete problems.

    View this question on its own page →
  11. Budget App•POCKETLY

    Pocketly on Android

    Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.

    Install Pocketly
  12. Q9c. Write a short note on Universal Turing Machine.20254.66m

    Module 5: Undecidability

    Write a short note on Universal Turing Machine.

    View this question on its own page →