This page is located at http://www.cs.bc.edu/~alvarez/Theory/PS10/
A = on input w: feed w to M if M accepts w feed w to M' if M' accepts w accept w else reject w end if else reject w end if
a) In terms of L and L', what language is recognized by A? Explain.
b) Is A a decision procedure (decider)? Explain.
Suppose that L is a Turing-enumerable language and that its complement L' is also Turing-enumerable.
a) Give a detailed high-level pseudocode description of a decider Turing machine D that recognizes L. Your description should state what steps D goes through in order to carry out its computation on a generic input string w. The operation of your machine should be based directly on the use of enumerator machines for L and L', without relying on the fact (proven in class) that a language is Turing-recognizable if and only if it is Turing-enumerable.
b) Provide explanations for each of the following based on your design from part a):
and
Let L be a decidable language. There exists a finite integer p, called a pumping length of L, such that if w is any string that belongs to L that has length p or greater, then w may be expressed as a concatenation of the form w = rquvxyz so that the following conditions hold:Is the above DPL correct, that is, do all decidable languages have the property stated in the DPL? Answer either yes or no, and provide a convincing justification for your answer. If you answer yes, give a general, complete, argument that shows that the property stated in the DPL holds for all decidable languages. If you answer no, give a specific example, with detailed explanations, of a decidable language for which the stated property does not hold.
- |quvxy| ≤ p.
- qvy is nonempty.
- for every non-negative integer i, the pumped string rqiuvixyiz belongs to L.