Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Show that the class of DCFLs is not closed under the following operations:

a. Union

b. Intersection

c. Concatenation

d. Star

e. Reversal

Short Answer

Expert verified

a).The deterministic context free language is not closed under Union.

b).The deterministic context free language is not closed underIntersection.

c).The deterministic context free language is not closed underConcatenation.

d).The deterministic context free language is not closed underStar.

e). The deterministic context free language is not closed under Reversal.

Step by step solution

01

Step 1: Deterministic context free language.

Context free language is a grammar where its language or string that formed by context free grammar is supports pushdown deterministic automata.

Context free language is used to represent syntax of language but not used to represent meanings of languages. To represent meaning of a sentence so there Context free grammar is used. Context free language is of two types which is DCFL is deterministic context free language and NDCFL non- deterministic context free language.

02

Step 2: DCFLs is not closed under Union.

a).

Deterministic context free language is not closed under Union is determined by the Union of two deterministic context free language is may or may not be deterministic context free language hence deterministic context free language is not closed under union.

DCFL  U    DCFL  =  NON  DCFL

{anbn}{anb2n}={anb2n}

Hence, the deterministic context free language is not closed under Union.

03

Step 3: DCFLs is not closed under Intersection.

b).

Deterministic context free language is not closed under Intersection is determined by the intersection of two deterministic context free language is may or may not be deterministic context free language hence deterministic context free language is not closed under Intersection.

{anbncm}    {ambncn}    =  {anbncn}  

DCFL  U    DCFL  =  NON  DCFL

hence, the deterministic context free language is not closed under Intersection.

04

Step 4: DCFLs is not closed under Concatenation.

c).

The concatenation of two deterministic context free language is may or may not be deterministic contextfree language hence deterministic context free language is not closed under concatenation.

Ex.   {XWCWR  |w{a,b}+}                   {XWCWR  |x{a,b}+}

Hence, the deterministic context free language is not closed under concatenation.

05

Step 5: DCFLs is not closed under Star.

d).

Thedeterministic context free language is not closed under kleen closure or also called star is defined as it may or may not be deterministic context free language.

It is denoted by L*.

DCFL  U    DCFL  =  NON  DCFL.

Hence, the deterministic context free language is not closed under star.

06

Step 6: DCFLs is not closed under Reversal.

e).

Reversal of a deterministic context free language is may or may not be deterministic context free language is defined as,

L={WCWRX    |X{a,b}*}L={XWRCXW   |X{a,b}+}

DCFL  U    DCFL  =  NON  DCFL

Hence, the deterministic context free language is not closed under reversal.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free