Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

COMP 330 - Fall 2020 - Assignment 4   Due: 11:59pm Nov 7 th

Computer Science Nov 28, 2020

COMP 330 - Fall 2020 - Assignment 4

 

Due: 11:59pm Nov 7 th.

 

General rules: In solving these questions you may consult books or other available notes, but you need to provide citations in that case. You can discuss high level ideas with each other, but each student must find and write her/his own solution. Copying solutions from any source, com-

 

pletely or partially, allowing others to copy your work, will not be tolerated, and will be reported to the disciplinary office.

You should upload the pdf file (either typed, or a clear and readable scan) of your solution to mycourses.

 

  1. (10 Points) Let M1 and M2 be two Turing machines. Consider the following Turing machine:

On input w:

    • Step 1: Run M1 on w. If M1 accepts w, then accept.
    • Step 2: Run M2 on w. If M2 accepts w, then accept.

What is the language of this Turing Machine? Explain.

  1. (15 Points) Let E be an enumerator for a language L with the extra property that it will print the words in an increasing order of lengths. That is it will never print a word w before a shorter word u.

Prove that L is decidable.

  1. (15 Points) Is the following language decidable[1]?

L = {hMi | M = ({1,2,...,100},{0,1},{0,1,t},δ,1,2,3) is a decider}.

1

  1. (20 Points) In the class we showed that the following language is Turing Recognizable. Prove that it is in fact decidable.

L = {hp(x)i | p(x) is a polynomial with integer coefficeints that has an integer root}.

  1. (20 Points) Without using Rice’s theorem (See Problem 28 of the textbook) prove that the following language is not decidable

L = {hMi | L(M) is finite}.

  1. (20 Points) You are allowed to use Rice’s theorem (See Problem 5.28 of the textbook) to answer this question. For each one of the following three languages, either prove that they are decidable, or prove that they are undecidable.

( a )

Lr = {hMi | L(M) is a regular language}.

( b )

LTR = {hMi | L(M) is a Turing recognizable language}.

( c )

Ld = {hMi | L(M) is a decidable language}.

2

 

[1] Recall that a TM is formally defined as (Q,Σ,Γ,δ,qstart,qaccept,qreject). A Turing Machine is called a decider if it halts on every input.

Expert Solution

Please use this google drive link to download the answer file.

https://drive.google.com/file/d/16N6waqcjUGuKZCVArCp_6HWMQVNs6qvd/view?usp=sharing

Note: If you have any trouble in viewing/downloading the answer from the given link, please use this below guide to understand the whole process.

https://helpinhomework.org/blog/how-to-obtain-answer-through-google-drive-link

Archived Solution
Unlocked Solution

You have full access to this solution. To save a copy with all formatting and attachments, use the button below.

Already a member? Sign In
Important Note: This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.

For ready-to-submit work, please order a fresh solution below.

Or get 100% fresh solution
Get Custom Quote
Secure Payment