/*! 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} Q63P a. Let Abe an infinite regular ... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

a. Let Abe an infinite regular language. Prove thatA can be split into two infinite disjoint regular subsets.

b. LetBandD be two languages. Write B⊂⊂DifB⊆Dand Dcontains infinitely many strings that are not in B. Show that if BandD are two regular languages whereB⊂⊂D , then we can find a regular languageC where B⊂⊂C⊂⊂D.

Short Answer

Expert verified

a). Acan be split into two infinite disjoint regular subsets is proved.

b). B,C,DholdsB⊂⊂C⊂⊂Dis holds regular language.

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

A is split into two infinite disjoint regular subsets.

a).

An infinite regular language must be having a loop in its transition diagram for DFA deterministic finite automaton (if complement operation is not given). After that unroll the loop to make two DFA deterministic finite automatons, 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.

At the first of which accepts strings which have odd number of iterations of concerned loops and second accepts strings which have even number of iteration of concerned loops.

Since A is infinite and regular language, then the pumping lemma holds. And also have a pumping length p≥0 for this language. And then take one word w â¶ÄŠin â¶ÄŠA such that |w|≥pand according to the pumping lemma we split it into |w|≥pas in the lemma.

Then, define the two languages like this:

A1contains all the stringsxy2iz,i≥0.

A2contains all the stringsxy2i+1z,i≥0.

That means that A1contains all the strings that go an even number of times in that cycle, and A2A2 all the strings that go an odd number of times in that cycle.

Hence,A can be split into two infinite disjoint regular subsets is proved.

03

It holds regular language or not.

b).

Here as given in the questionB⊂⊂D be two languages. B⊂⊂DifB⊆DandA contains infinitely many strings that are not in A. Show that if AandB⊂⊂C⊂⊂D are two regular languages where, B⊂⊂D, then we can find a regular language Awhere B⊂⊂C⊂⊂D.

By partrole="math" localid="1660752008664" a it can be always split DintoBandAwhich both are infinite and disjoint regular subsets.

And through this similarly, it can splits AintoA1andA2, both of them is regular infinite and disjoint.

Consider,C=B∪A1 . Of courseC is regular (then the union of the two regular languages is regular) and infinite.

And B,C,DholdsB⊂⊂C⊂⊂Dtrue.

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

Let Σ2be the same as in Problem 1.33. Consider each row to be a binary number and let D={w∈Σ*2|the top row of w is a larger number than is the bottom row}. For example, 00101100∈D, but 000111006∈D. How that D is regular.

Prove that for each n>0, a languageBn exists where

  1. Bnis recognizable by an NFA that hasn states, and
  2. If Bn=A1∪…∪Ak, for regular languages Ai, then at least one of theAi requires a DFA with exponentially many states.

If A is any language, let A12− be the set of all first halves of strings in A so that ,

A12-={x|forsomey,|x|=|y|andxy∈A}.

Show that if A is regular, then so is A12−

Let N be an NFA with k states that recognizes some language A.

a. Show that if Ais nonempty, Acontains some string of length at most k.

b. Show, by giving an example, that part (a) is not necessarily true if you replace both A’s byA .

c. Show that If Ais nonempty, Acontains some string of length at most 2k.

d. Show that the bound given in part (c) is nearly tight; that is, for each k, demonstrate an NFA recognizing a languagerole="math" localid="1660752484682" Ak' where role="math" localid="1660752479553" Ak'is nonempty and where Ak'’s shortest member strings are of length exponential in k. Come as close to the bound in (c) as you can.

Recall that string x is a prefix of string y if a string z exists where xz=y, and that x is a proper prefix of y if in addition x6=y. In each of the following parts, we define an operation on a language A. Show that the class of regular languages is closed under that operation.

a)NOPREFIXA={w∈A|noproperprefixofwisamemberofA}.b)NOEXTENDA={w∈A|wisnottheproperprefixofanystringinA}.

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.