Consider the following languages.
- ,
- and
- ,
where for each Turing machine denotes a specific encoding of . Which one of the following is TRUE?
View worked solution
Answer: C
To determine whether the languages , , and are recursive (decidable), we analyze each one individually:
1. Analysis of and
For any Turing machine , in steps, the read-write head can scan at most cells of the input tape. Consequently, any input symbols beyond the first positions cannot influence the computation of within the first steps.
- Let be the input alphabet of . The number of possible input prefixes of length at most is finite (specifically, ).
- To decide or , a decider can simulate on each of these finitely many inputs for at most steps.
- For : If takes steps on at least one of these finite inputs, the decider accepts. Otherwise, it rejects. Since the simulation is guaranteed to terminate in a finite number of steps, is recursive.
- For : If takes steps on all of these finite inputs, the decider accepts. Otherwise, it rejects. Since this simulation also always terminates, is recursive.
2. Analysis of
is the acceptance problem for the empty string.
- The property "accepts " is a non-trivial semantic property of recursively enumerable languages (some Turing machines accept , while others do not).
- By Rice's Theorem, any non-trivial semantic property of Turing machines is undecidable. Thus, is not recursive (it is recursively enumerable but not recursive).
Hence, and are recursive, and is not recursive.
Free practice · Your answers on this page are not saved.
