Halting problem on no input

Assignment Help Basic Computer Science
Reference no: EM13963444

Halting Problem on No Input

Suppose you are given a function Halt that can be used to determine whether a program that requires no input halts. To make this concrete, assume that you are writing a C or Pascal program that reads in another program as a string. Your program is allowed to call Halt with a string input. Assume that the call to Halt returns true if the argument is a program that halts and does not read any input and returns false if the argument is a program that runs forever and does not read any input. You should not make any assumptions about the behavior of Halt on an argument that is not a syntactically correct program.

Can you solve the halting problem by using Halt? More speci?cally, can you write a program that reads a program text as input, reads an integer as input, and then decides whether halts when it reads as input? You may assume that any program you are given begins with a read statement that reads a single integer from standard input. This problem does not ask you to write the program to solve the halting problem. It just asks whether it is possible to do so.

If you believe that the halting problem can be solved if you are given Halt, then explain your answer by describing how a program solving the halting problem would work. If you believe that the halting problem cannot be solved by using Halt, then explain brie?y why you think not.

Reference no: EM13963444

Questions Cloud

Description and symptoms of parkinson disease : Provide a short description and the symptoms of Parkinson's disease or early detections, if any
What is the speed of sound in air at each temperature : The coldest and hottest temperatures recorded are: 134 degrees Farhenheit and -80 degrees Farhenheit.
Journalize the entry to record the current depreciation : Journalize the entry to record the current depreciation of the old equipment to the date of trade-in.
What is the minimum photon energy in electron volts : The metallic light-receiving surface within each tube is sensitive to light of wavelengths shorter than 605 x 10^2nm. The corresponding photon energy represents the minimum energy to eject a photoelectron. What is the minimum photon energy in elec..
Halting problem on no input : Suppose you are given a function Halt that can be used to determine whether a program that requires no input halts. To make this concrete, assume that you are writing a C or Pascal program that reads in another program as a string.
Ow does smart grid concept impact cybersecurity discussion : What do you think are the current issues facing our power grids to defend against attacks? And, how does the Smart Grid concept impact the cybersecurity discussion?
Different solutions to work through conflict in positive way : Tension and conflict continue and this problem is unresolved. Your assignment is to apply concepts from the course material correctly toward solving family and relationship problems by using three different solutions to work through conflict in po..
Employers do not pay payroll taxes on payments : Employers do not pay payroll taxes on payments made to independent contractors The FICA tax rates and taxable wage bases are exactly the same for employees and employers
What is the final total mass of the cup and its contents : A 150 gram Aluminum calorimeter cup contains 320 grams of water at 22 degrees Celsius. Steam at 100 degrees Celsius is routed into the calorimeter until the temperature of the cup and its contents reaches 50 degrees Celsius.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Initial stage of software leading to its growth

My paper will focus of the initial stage of software leading to its growth and how it's used now. I also will focus on ideas of the direction Software Engineering will take technology. Technology grown rapidly from the day of the first compute..

  Write assembly code that computes average

Using MARS, write Assembly code (for RISC) that computes average of list of mideterm test scores in #  freshman ENGR121 class and return in $v0.

  What is spyware? would this include keylogging at work?

What is spyware? Would this include keylogging at work?

  Analyse the effectiveness of the qantas

You are required to analyse the effectiveness of the Qantas Online Air Ticketing system

  Importance of first designing a program using an algorithm

Programs must be very thoroughly designed before they are written. In this assignment, you will discuss the importance of first designing a program using an algorithm, pseudocode, and flowcharts before writing the actual code.

  Explanation of how technology might help you reach your goal

explanation of how technology might help you reach your goals

  What visual effects were you able to achieve

What visual effects were you able to achieve with the tools that you used in the activity?  Do you think these effects enabled you to improve the quality of the image?  Why or Why not?

  What sizes in memory in c++ and size of a char and a string

What are the sizes in memory of other data types in C++? I mean, I know that a double is 8 bytes and an int is 4 bytes. What is the size of a Char and a String?

  Sql statements work without issue

Use SQL to Create a table with at least 4 attributes one of which is the Primary key. Then, insert 2 records into the table. Finally, use a select statement to show the content of your table after the inserts. Be sure your SQL statements work with..

  Explaining data visualization form of business intelligence

Is data visualization a form of business intelligence? Describe why or why not? What security issues are related with data visualization?

  Write a program called generateprimes

Write a program called generatePrimes.py that prompts the user for a number n and outputs all the primes less than or equal to n. You must use the algorithm described above.

  Discuss when program might use both base and derived class

Discuss when a program might use both the base class and the derived class and why

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd