Introduction
15 questions across Phase 5.
Practice questions
- MSQ · 2 marks
Which are countable?
- set of all TMs
- set of all languages over {0,1}
- Σ*
- set of all CFLs
- MCQ · 1 mark
Why do non-RE languages exist?
- TMs can loop
- there are countably many TMs but uncountably many languages
- Σ* is uncountable
- RE is not closed under union
- MCQ · 1 mark
HALT_TM is:
- decidable
- RE but undecidable
- not RE
- regular
- MSQ · 2 marks
Which are not RE?
- L_d
- complement of HALT_TM
- A_TM
- complement of A_TM
- MCQ · 2 marks
L is RE and co-RE. Then:
- L is recursive
- L = A_TM
- L is not RE
- L is finite
- MCQ · 2 marks
A ≤ₘ B, A undecidable. Then:
- B decidable
- B undecidable
- B regular
- nothing
- MCQ · 1 mark
E_TM = {⟨M⟩ : L(M) = ∅} is:
- RE
- co-RE but not RE
- decidable
- neither RE nor co-RE
- MSQ · 2 marks
Which are neither RE nor co-RE?
- EQ_TM
- TOTAL_TM (halts on all inputs)
- A_TM
- E_TM
- MSQ · 2 marks
Which are decidable?
- M has at most 5 states
- L(M) is finite
- M halts on ε within 100 steps
- L(M) contains ε
- MCQ · 1 mark
Rice’s theorem applies to properties of:
- the TM’s code
- the TM’s language
- the TM’s running time
- the TM’s tape alphabet
- MCQ · 1 mark
PCP is used to show undecidability of:
- DFA equivalence
- CFG ambiguity
- CFL membership
- regular emptiness
- MSQ · 2 marks
Which are decidable?
- CSL membership
- CSL emptiness
- CFL finiteness
- DCFL equivalence
- MSQ · 2 marks
Which are undecidable?
- CFG universality
- equivalence of two CFGs
- regular-language containment
- DCFL disjointness
- MCQ · 1 mark
For which class is membership undecidable?
- CFL
- CSL
- REC
- RE
- NAT · 1 mark
How many of {membership, emptiness, finiteness, equivalence, universality} are decidable for DCFLs?
Write your answer before opening the key.
Answer key
Reveal answers when you’re ready
- ACD — Finite descriptions.
- B: Uncountable.
- B — Counting.
- A: Not the reason.
- C: False.
- D: False.
- B — Turing.
- A: No.
- C: It is RE.
- D: No.
- ABD — Complements of RE-undecidable sets; L_d by diagonalization.
- C: RE.
- A — REC = RE ∩ co-RE.
- B: A_TM is not co-RE.
- C: Contradiction.
- D: No.
- B — Hardness flows forward.
- A: Contradiction.
- C: No.
- D: It follows.
- B — Complement RE.
- A: No.
- C: No.
- D: It is co-RE.
- AB — Standard.
- C: RE.
- D: co-RE.
- AC — Code / bounded properties.
- B: Rice.
- D: Rice (RE, undecidable).
- B — Language properties.
- A: No.
- C: No.
- D: No.
- B — Standard application.
- A: Decidable.
- C: Decidable.
- D: Decidable.
- ACD — Table.
- B: U.
- ABD — Table.
- C: Decidable for regular.
- D — A_TM.
- A: D.
- B: D.
- C: D.
- 5 — All five.