Question: For the following answer: regular or not? context free or not ? ( Give one sentence explanation) (a) L = a n cb n Not
For the following answer: regular or not? context free or not? (Give one sentence explanation)
(a) L = ancbn Not regular, compare arb. high. CF SaSb | c
(b) L = {a, b}* - {anbn : n ? 0} not regular, count; CF see 2.6b
(c) L = { an*n : n != 0} = {a, aaaa, a9, a16 }. Not regular see p. 82; not CF same pumping lemma proof will work
(d) L = {w in {a, b, c}* : w has equal numbers of a's, b's, and c's}. Not reg or cf: three numbers to compare
(e) L = {anbman : n ? m} Not reg or cf; three comparisons
(f) L = {ambncpdq : n = q, or m ? p or m + n = p + q} Not reg, comparison. CF: WHY??? Describe!
(g) L = an bm | m = 2n Not reg, compare 2 numbers; CF: S aSbb | epsilon
(h) L = an bm | m is even REg and CF, a*(bb)*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
