Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MCQ: A) Five languages are defined by the following five grammars: L1: S aaSa | L2: S aSaa | a L3: S aaA, A aS

MCQ:

A) Five languages are defined by the following five grammars:

L1: S aaSa |

L2: S aSaa | a

L3: S aaA, A aS |

L4: S Saaa | aa |

L5: S aaA | a | , A aS

Determine:

1)Which pairs of languages are disjoint?

2)Which languages are contained in which other languages?

3) Which languages are complements of one another (with respect to the language a*)?

Then, identify the statement below that is FALSE.

a) L1 is contained in L5.

b) L1 and L3 are disjoint.

c) L1 and L2 are disjoint.

d) L2 is contained in L4.

-

B) The intersection of two CFL's need not be a CFL. Identify in the list below a pair of CFL's such that their intersection is not a CFL.

a) L1={anbjcic | n>0, i>0, j>0} L2={ajanbici | n>0, i>0, j>0}

b) L1={abanbnci | n>0, i>0} L2={abanbjci | n>0, i>0, j>0}

c) L1={acanbjcic | n>0, i>0, j>0} L2={acajanbici | n>0, i>0, j>0}

d) L1={abanbnci | n>0, i>0} L2={abanbici | n>0, i>0}

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

http://www.weather.gov/rah/rdutemperaturerecords

Answered: 1 week ago