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

  Create circuit at gate level to calculate function

Create the circuit at gate level to calculate the following function: if (a=b)y=a; else y=0;.let a,b and y be 16 bit buses. Suppose input and output capacitances are each 10 units.

  Develop a framework for the it steering committee

Develop a framework for the IT steering committee, explaining the roles and responsibilities of the members.

  Use a single if statement and boolean operators

Write a program that asks the user for a year and computes whether that year is a leap year. Use a single if statement and Boolean operators.

  What is the infinite union of all context-sensitive language

What is the infinite union of all context-sensitive languages? Decidable languages? What is the infinite intersection of all context-sensitive languages? Decidable languages?

  Critical infrastructure protection

Critical Infrastructure ProtectionAccording to the text, Critical Infrastructure Protection (CIP) is an important cybersecurity initiative that requires careful planning and coordination in protecting our infrastructure.

  Digital forensic investigator for a healthcare organization.

Imagine you are a digital forensic investigator for a healthcare organization. You learn from your internal information security department that an employee has been using password-cracking software to access confidential customer insurance informati..

  Preparing for a company-wide migration to windows 8

Crescent Manufacturing Inc. (CMI) is a luxury leader in crafted and customized home furnishings. The corporate headquarters and a production facility are located in Texas, with additional manufacturing facilities located in Nebraska and Maryland.

  Computers and the internet becomes more prevalent

As the use of computers and the internet becomes more prevalent, ethical issues related to computer usage will continue to make a larger impact on people's lives and the way that society functions.

  Challenges in the global business environment

According to the textbook, ongoing challenges in the global business environment are mostly attributed to unethical business practices, failure to embrace technology advancements, and stiff competition among businesses. Use the Internet to researc..

  Determine decimal value on big-endian machine

A 32-bit word on the little-endian computer has decimal value of 261. Determine its decimal value on big-endian machine?

  Design a butterworth passive filter

Determine the required order of a Butterworth filter that meets the above specifications, Design a Butterworth passive filter (75W termination) that meets the specifications using the filter prototype design table given in your online notes. In yo..

  Draw the hieararchy chart

Draw the hieararchy chart and then plan the logice for a program that calculates a person's body mass index BMI. BMI is a statistical measure that compares the person's weight and height.

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