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 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
question
Computers and Technology, 24.06.2019 06:30
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
You know the right answer?
The Complexity Hierarchy The complexity hierarchy is a monument to our collective understanding of c...
Questions
question
Mathematics, 06.11.2020 20:20
question
German, 06.11.2020 20:20
question
Mathematics, 06.11.2020 20:20
question
Mathematics, 06.11.2020 20:20
question
Mathematics, 06.11.2020 20:20
question
Health, 06.11.2020 20:20
Questions on the website: 13722360