Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*****PLEASE ANSWER ONLY #3 AND #4. IGNORE #2***** 2. (4.13 from the textbook) Let A | R and S are regular expressions and L(R) L(S)

image text in transcribed*****PLEASE ANSWER ONLY #3 AND #4. IGNORE #2*****

2. (4.13 from the textbook) Let A | R and S are regular expressions and L(R) L(S) Prove that A is decidable. (HINT: Examine the proof that EQDFA is decidable.) 3. Let INFINITETM kM> M is a Turing Machine and the language accepted by M is infinite). Prove that INFINITE- is undecidable. Let STM ( | M is a Turing Machine and M accepts some string from 2*). I M is a Turing 4. a. Explain why the following "proof" that STM is Turing recognizable is incorrect. Proof." Let (wi,w2.wa ) be the list of all strings in * in short lexicographic order (defined on p. 14 of the textbook). Then, the following Turing Machine R is a recognizer for S. On input 1. 2. 3. Set i=1 Simulate the execution of M on wi. If M accepts, accept. Increment i and repeat step 2. Modify this incorrect "proof" to give a correct proof that STM is recognizable. (HINT: Consider the proof that a language is Turing recognizable if and only if some enumerator enumerates it.) b. c. Now, show that ETM | M is a Turing Machine and L(M)is not Turing recognizable 2. (4.13 from the textbook) Let A | R and S are regular expressions and L(R) L(S) Prove that A is decidable. (HINT: Examine the proof that EQDFA is decidable.) 3. Let INFINITETM kM> M is a Turing Machine and the language accepted by M is infinite). Prove that INFINITE- is undecidable. Let STM ( | M is a Turing Machine and M accepts some string from 2*). I M is a Turing 4. a. Explain why the following "proof" that STM is Turing recognizable is incorrect. Proof." Let (wi,w2.wa ) be the list of all strings in * in short lexicographic order (defined on p. 14 of the textbook). Then, the following Turing Machine R is a recognizer for S. On input 1. 2. 3. Set i=1 Simulate the execution of M on wi. If M accepts, accept. Increment i and repeat step 2. Modify this incorrect "proof" to give a correct proof that STM is recognizable. (HINT: Consider the proof that a language is Turing recognizable if and only if some enumerator enumerates it.) b. c. Now, show that ETM | M is a Turing Machine and L(M)is not Turing recognizable

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions