Use the construction in the proof of Theorem 1.45 to give the state diagrams of NFAs recognizing the union of the languages described in

a. Exercises 1.6a and 1.6b.

b. Exercises 1.6c and 1.6f

Short Answer

Expert verified

a.

b.

Step by step solution

01

Explain the given information

Use Theorem 1.45 which states the union of regular languages to construct state diagrams of NFA of the given languages.

02

(a) Give the state diagrams of NFAs recognizing the union of the languages


Consider the given languages ,

L1={w|wstartwith1 andfinishwith a0}L2={w|wusingatleastthree1s}on=0,1.

Let M1andM2be the NFAs recognize the languages L1andL2respectively.

The union of the language can be defined as, L=L1L2and Mbe the NFA that recognizes L.

The state diagram of M1is as follows,

The state diagram of M2 is as follows,

Therefore, the state diagram of M is as follows,

03

(b) Give the state diagrams of NFAs recognizing the union of the languages

Consider the languages,

L1={w|wcontainsthesubstring0101i.e,w=x0101yforsomexandy}on={0,1}

L1={w|wdoesn'tcontainthesubstring110}on={0,1}.

Let M1andM2be the NFAs that recognize the languages L1andL2respectively.

The union of two languages is , L=L1L2 and it is recognized by the NFA M.

The state diagram of M1is as follows,

The state diagram of M2is as follows,

Therefore the state diagram of Mis as follows,

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

Most popular questions from this chapter

Use the result of Problem 6.21 to give a function f that is computable with an oracle for ATM, where for each n,f(n) is an incompressible string of length n.

If Cis a set withcelements, how many elements are in the power set of C? Explain your answer.

Myhill–Nerode theorem. Refer to Problem 1.51 . Let L be a language and let X be a set of strings. Say that X is pairwise distinguishable by L if every two distinct strings in X are distinguishable by L. Define the index of L to be the maximum number of elements in any set that is pair wise distinguishable by L . The index of L may be finite or infinite.

a. Show that if L is recognized by a DFA with k states, L has index at most k.

b. Show that if the index of L is a finite number K , it is recognized by a DFA with k states.

c. Conclude that L is regular iff it has finite index. Moreover, its index is the size of the smallest DFA recognizing it.

LetAbe the set{x,y,z}andBbe the set{x,y}.

  1. IsAa subset ofB?
  2. IsBa subset ofA?
  3. What isAB?
  4. What isAB?
  5. What isA×B?
  6. What is the power set ofB ?

A two-dimensional finite automaton (2DIM-DFA) is defined as follows. The input is an m×nrectangle, for any m,n2. The squares along the boundary of the rectangle contain the symbol # and the internal squares contain symbols over the input alphabet . The transition function δ:Q×#Q×L,R,U,Dindicates the next state and the new head position (Left, Right, Up, Down). The machine accepts when it enters one of the designated accept states. It rejects if it tries to move off the input rectangle or if it never halts. Two such machines are equivalent if they accept the same rectangles. Consider the problem of determining whether two of these machines are equivalent. Formulate this problem as a language and show that it is undecidable.

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.

Sign-up for free