Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions