a) Assume L is a decidable language over the alphabet . Let M be a Turing machine
Fantastic news! We've Found the answer you've been seeking!
Question:
a) Assume L is a decidable language over the alphabet Σ∗. Let M be a Turing machine that decides L, and let s1, s2, . . . , sk, . . .be a lexicographical ordering of the strings in Σ∗. Describe an enumerator that prints the strings in L in lexicographical order.
b) Assume there exists an enumerator E for L that prints the strings in lexicographical order. Write a decider for L. You may assume L is infinite. You can use pseudo-code for your decider.
c) Would your decider still work if L is a finite language? Explain
Related Book For
Discrete Mathematics and Its Applications
ISBN: 978-0073383095
7th edition
Authors: Kenneth H. Rosen
Posted Date: