Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7.5 Prove that each of the following problems is undecidable. Each problem receives a single program P as input. (a) EMPTYONEMPTY: Does Ple) = ?

image text in transcribedimage text in transcribed

7.5 Prove that each of the following problems is undecidable. Each problem receives a single program P as input. (a) EMPTYONEMPTY: Does Ple) = ? (b) GAGAONEMPTY: Does P() =GAGA? (c) NOONSOME: Does P(I) =no for some I? (d) YESONGAGA: Does P(GAGA) =yes? (e) LONGERTHAN3ONALL: Is \P(I)| > 3 for all I? 7.11 Consider our proof that NUMCHARSONSTRING is uncomputable. In par- ticular, examine the program alterYesToNumChars.py (top of figure 7.12). Line 10 of this program returns the string xx, but the proof could remain valid even if we had used a different return value here. Which return values can be used at line 10? In particular, for which of the following return values would the proof remain valid: , a, aa, aaa, aaaa? Explain your answer. 7.5 Prove that each of the following problems is undecidable. Each problem receives a single program P as input. (a) EMPTYONEMPTY: Does Ple) = ? (b) GAGAONEMPTY: Does P() =GAGA? (c) NOONSOME: Does P(I) =no for some I? (d) YESONGAGA: Does P(GAGA) =yes? (e) LONGERTHAN3ONALL: Is \P(I)| > 3 for all I? 7.11 Consider our proof that NUMCHARSONSTRING is uncomputable. In par- ticular, examine the program alterYesToNumChars.py (top of figure 7.12). Line 10 of this program returns the string xx, but the proof could remain valid even if we had used a different return value here. Which return values can be used at line 10? In particular, for which of the following return values would the proof remain valid: , a, aa, aaa, aaaa? Explain your

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 In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago