Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. (25) Classify each of the following languages as: (R) Regular, (CF) Context-Free, but not regular, (REC) Recursive -- Turing-Decidable -- but not context-free, (R.E.)

5. (25) Classify each of the following languages as:

(R) Regular, (CF) Context-Free, but not regular,

(REC) Recursive -- Turing-Decidable -- but not context-free,

(R.E.) recursively enumerable -- Turing-Recognizable -- but not Turing-decidable, or (None) None of the above.

Explanation not necessary.

a. {w {0 - 9}* : w, when viewed as a base 10 integer, with no leading zeros, is divisible by 20}.

b, Lwrites-0 = { | is a description of a TM and M writes a 0 when run on some string w}

c. LPLUS = { axbycz : x, y, z are integers, z = x+y}

d. LREJECTS-TWO = { : M rejects at least two strings}

e. LPART_REVERSE = {w = xyxR : x in{0, 1}+=(0|1)*(0|1), y in (0|1)*}

f. LTHIRDS = {wx : |w| = 2|x| , w in a+b+ , x in a+b+}

(length of strings divisible by 3, first 2/3 of form a+b+, last third of the form a+b+)

g. LTWO-RT_MOVES = { : M moves right exactly twice while operating on w}

h. LLEAP YEAR = {n : n is a non-negative number denoting a leap year}

A year is a leap year if and only if it is divisible by 4, unless it is divisible by 100, in which case it is not a leap year, unless it is divisible by 400, in which case it is eg 1984, 2000, not 1900, 2010

i. Laccepts at least 2= { | M is a Turing Machine that accepts at least two strings}

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago