Question: Hello - World programs are impossible to grade. A Java program P is called a Hello - World - program, if the following is true:

Hello-World programs are impossible to grade. A Java program P is called a Hello-World-program, if the following is true: When given the empty string \epsi as input, P outputs the string Hello World and then terminates. (We do not care what P does when the input string is non-empty.)
Consider the language
HW ={| P is a Hello-World-program}.
You are asked to prove that HW is undecidable.
(a) Use a Turing reduction from HALT to HW where
HALT ={| P is a Java program that halts on input w}
is undecidable. Your reduction may bear similarities to the reduction in class that preceded the proof of Rices Theorem
Just for this problem, we switch our computation model from Turing machines to Java programs (as these models are equivalent, all results from class also apply here).
(b) Show that your reduction is a mapping reduction by defining the corresponding function f : \Sigma *->\Sigma * and explaining why it satisfies the definition of a mapping reduction.
 Hello-World programs are impossible to grade. A Java program P is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!