Question
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 = {
c. LPLUS = { axbycz : x, y, z are integers, z = x+y}
d. LREJECTS-TWO = {
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 = {
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= {
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started