Answered step by step
Verified Expert Solution
Link Copied!

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:

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

Discuss consumer-driven health plans.

Answered: 1 week ago