/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q71P Let Σ={0,1}.a. Let  A={0ku0k... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Let Σ={0,1}.

a. Let A={0ku0kk≥1andu∈Σ*}Show that Ais regular.

b. Let B={0k1u0k|k≥1andu∈Σ*}Show thatB is not regular.

Short Answer

Expert verified

a) A is regular is proved.

b) Bis not regular is proved.

Step by step solution

01

Regular language.

A language is regular if it can be expressed in terms of regular expression. A regular expression can also be described as a sequence of pattern that defines a string. Regular expressions are used to match character combinations in strings.

02

Language is regular.

a).

For the string which containsΣ={0,1} where string can be made for the given language in the question and string is formed.

And for the given grammar the language is possible and also its string can be formed and also deterministic finite machine is possible.

The string formed is given as,

In regular expression,

0(0+1)*0

Here, this isbecause(0+1)* can generate all the string required,

(0+1)*=0(0+1)*0=00(0+1)*00=0n(0+1)*0n

Hence, This is proved that A={0ku0kk≥1andu∈Σ*}is regular. And this is a regular language and deterministic finite machine is possible.

03

Language is not regular.

b).

For the string which containsΣ={0,1} where language is regular if it can be expressed in terms of regular expression.A regular expression can also be described as a sequence of pattern that defines a string. Regular expressions are used to match character combinations in strings.

For the given language,B={0k1u0k|k≥1andu∈Σ*}.

B={0k1u0k|k≥1andu∈Σ*}.

The deterministic finite automata is not possible.

Hence,B={0k1u0k|k≥1andu∈Σ*}. is not regular. This is not a regular language and no deterministic finite machine is possible.

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 91Ó°ÊÓ!

One App. One Place for Learning.

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

Get started for free

Most popular questions from this chapter

A homomorphism is a function f:Σ-→Γ*from one alphabet to strings over another alphabet. We can extend f to operate on strings by defining:f(w)=f(w1)f(w2)···f(wn),wherew=w1w2···wnandeachwi∈Σ.

We further extend fto operate on languages by defining f(A)={f(w)|w∈A},for any language A.

a. Show, by giving a formal construction, that the class of regular languages is closed under homomorphism. In other words, given a DFA Mthat recognizes Band a homomorphism f, construct a finite automaton role="math" localid="1660800566802" M0that recognizes f(B).Consider the machine role="math" localid="1660800575641" M0that you constructed. Is it a DFA in every case?

b. Show, by giving an example, that the class of non-regular languages is not closed under homomorphism.

Use the pumping lemma to show that the following languages arenot regulara. â¶Ä‰â¶Ä‰A1={0η1η2η|n≥0}b. â¶Ä‰â¶Ä‰A2={Ó¬Ó¬Ó¬|Ӭ∈{a,b}*}c. â¶Ä‰â¶Ä‰A3={a2η|n≥0}(Here,a2ηmeansastringof2η a's.)a. â¶Ä‰â¶Ä‰A1={0η1η2η|n≥0}b. â¶Ä‰â¶Ä‰A2={Ó¬Ó¬Ó¬|Ӭ∈{a,b}*}c. â¶Ä‰â¶Ä‰A3={a2η|n≥0}(Here,a2ηmeansastringof2η a's.)

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

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

Show that ADD is not regular.

Let ∑={0,1,#}. Let C={x#xR#x|x∈{0,1}*} . Show that C is a CFL.

Consider the languages Ckdefined in Problem 1.60. Prove that for eachk , no DFA can recognizeCk with fewer than2K states.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.