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

  The long-standing mubarak regime in egypt

It would have been hard to miss the information had you been scanning the newspapers during the tumultuous February of 2011, when the long-standing Mubarak regime in Egypt was swept from power by a popular uprising ultimately aligned with the militar..

  Write a shell script

Write a shell script, named grepdir.sh, that searches for a pattern in a directory, and all of its subdirectories.

  Compute trajectories for a satellite launcher

Compute trajectories for a satellite launcher

  Did the tool recover the deleted files

Did the tool recover the deleted files? How does data recovery differ from computer forensics

  Identify the elements of the business model

Identify the elements of the Business Model that cloud computing as a new opportunity could transform and describe the Business Concept, that outlines the vision of this future business model,

  What do you mean by the word query processing write down

question 1 what do you mean by the term query processing? what are its objectives?question 2 what are the typical

  Process based standard of security model for many organizati

ISO 17799 is a well-known and accepted process based standard of security model for many organizations. In his ISO 17799 article, Siponen argues that standards need to better focus on the process and the quality of the process. Can the ISO model be i..

  Written personal web plan using the process

Reflect on, and write down the purpose of your site and your target audience. What is your goal for the site? That is, how do you want to present yourself to prospective employers, graduate school or online?

  Explaining it acquisition issued request for proposal

A federal agency that does not use IT acquisition best practices issued a request for proposal that requires the contractor selected to use such practices, including certification at CMMI Level 3 or above.

  Create a flowchart psuedocode and desk check

The members of the board of a small university are considering voting for a pay increase for their 25 faculty members. They are considering a pay increase of 8%. However, before doing so, they want to know how much this pay increase will cost. Design..

  Literature for information on position of cko

Investigate literature for information on position of CKO and find out an approximate percentage of firms with knowledge management initiatives which have CKOs.

  Fully web-based access for both general public and secretary

Fully web-based access for both general public and Secretary of state employees a database of drivers and their personnel information contained on their drivers licenses

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