Question: Consider the languages below. (a) For each, regular? context free? (Y/N) REG ? CF? ___ ___ L 1 = {0 n 1 m 0 m

Consider the languages below. (a) For each, regular? context free? (Y/N)

REG ? CF?

___ ___ L1 = {0n 1m 0m 1n | n,m >= 0}

___ ___ L2 = {0n 0m 1m 1n | n,m >= 0}

___ ___ L3 = {0n 1m+n 0m | n,m >= 0}

___ ___ L4 = {an bm | n+m is even, n,m>0}

___ ___ L5 = {w in (aUb)* | na(w) < nb(w) }

___ ___ L6 = {w in (aUb)* | na(w) < nb(w) , nb(w)<100 }

(b) Choose ONE non-context free language and prove that it is not context free

Note: na(w) means number of as in w so na(w) < nb(w) means strings with fewer as than bs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!