Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello - World programs are impossible to grade. A Java program P is called a Hello - World - program, if the following is true:
HelloWorld programs are impossible to grade. A Java program P is called a HelloWorldprogram, 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 nonempty.
Consider the language
HW P is a HelloWorldprogram
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started