subject

The Complexity Hierarchy The complexity hierarchy is a monument to our collective understanding of computation and its limitations. In fact, you may already be familiar with the classes P and NP from CS61B. In this problem, we will focus on decision problems like the Halting Problem, where the output is Yes (True) or No (False), and explore the classes RE, CORE, and R. (a) A problem is recursively enumerable (RE) if there exists a program P that can print out all the inputs for which the answer is Yes, and no inputs for which the answer is No. The program P can print out a given input multiple times, so long as every input gets printed eventually. The program P can run forever, so long as every input which should be printed is at a finite index in the printed output. Prove that the Halting Problem belongs in RE. Namely, prove that it is possible to write a program P which: • runs forever over all possible programs M and inputs x, and prints out strings to the console, • for every (M, x), if M(x) halts, then P eventually prints out (M, x), • for every (M, x), if M(x) does NOT halt, then P never prints out (M, x). CS 70, Summer 2020, ork In this context, P is called an enumerator. (Hint: Consider the tail of a dove.)
(b) An equivalent definition of RE is as follows: A problem belongs in RE if there exists a program P that will output Yes when given an input x for which the answer is Yes. If the answer is No, then P'(x) may output No or loop forever. As an optional exercise, you should be able to convince yourself that this is indeed an equivalent definition. Prove that the Halting Problem belongs in RE using this equivalent definition. Namely, prove that it is possible to write a program P' which: • takes as input a program M and input x. . if M halts on input x, then P' should print Yes. • if M does not halt on input x, then P' may output No or loop forever. In this context, P' is called a recognizer.
(c) As you might suspect, a problem is co-recursively enumerable (CORE) if its complement is in RE. The complement of a decision problem A is another problem A' where A'(x) is Yes iff A(X) is No, and A'(x) is No iff A(x) is Yes. State the complement of the Halting Problem.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
You know the right answer?
The Complexity Hierarchy The complexity hierarchy is a monument to our collective understanding of c...
Questions
question
Mathematics, 19.02.2020 00:08
question
History, 19.02.2020 00:09
Questions on the website: 13722363