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

LetΣ={0,1,+,=} and

ADD ={x=y+z|x,y,zarebinaryintegers,andxisthesumofyandz}.

Show that ADD is not regular.

Short Answer

Expert verified

It is proved that ADD is not regular language.

Step by step solution

01

Define regular languages

A language L is regular, if the length of all the strings belonging to L is greater than or equal to n. Also, there exists u, v, w∈Σ∗, such that x = uvw. And the following properties should also hold:
(1) |uv| ≤ n
(2) |v| ≥ 1
(3) for all i ≥ 0: uviw∈L

The context free language is generated by context free grammar.

These languages are accepted by Pushdown Automata. These are the superset of regular languages.

Consider context-free languagesL1 described as G1=(V1,S,R1,S1).

Consider context-free language L2described asG2=(V2,S,R2,S2).

02

Proof that ADD is not regular language

Suppose ADD is regular. Let Pbe its pumping length.

Σ=0,1,+,=

ADD=x=y+z|x,y,zarebinaryintegers,andxisthesumofyandz.

Take w to be the string,

1p=1p+0.Then,

Let,w=xyzbe a partition of W withxypandy>0

Note thaty=1kforsome1kp and that 1p=1p+0.is contained fully in Z.

Thus,

xy2zis1p+k=1k+0,

Which is not in the language, contradicting the pumping lemma.

Thus, ADD is not regular.

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