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

In Exercises 43–49 find the language recognized by the given nondeterministic finite-state automaton.

Short Answer

Expert verified

The result is\({\bf{L(M) = \{ \lambda }},0,1{\bf{\} }} \cup {\bf{\{ 1\} \{ 1\} *\{ 0\} }}\).

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

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

01

According to the figure.

Here the given figure contains three states \({{\bf{s}}_{\bf{o}}}{\bf{,}}{{\bf{s}}_{\bf{1}}}{\bf{,}}{{\bf{s}}_{\bf{2}}}\).

If there is an arrow from \({{\bf{s}}_{\bf{i}}}\) to \({{\bf{s}}_{\bf{j}}}\) with label x , then we write down in row \({{\bf{s}}_{\bf{j}}}\) and in the row \({{\bf{s}}_{\bf{i}}}\)and in column x of the following table.

State

0

1

\({{\bf{s}}_{\bf{o}}}\)

\({{\bf{s}}_{\bf{1}}}\)

\({{\bf{s}}_{\bf{1}}}\),\({{\bf{s}}_{\bf{2}}}\)

\({{\bf{s}}_{\bf{1}}}\)

\({{\bf{s}}_{\bf{2}}}\)

\({{\bf{s}}_{\bf{1}}}\)

\({{\bf{s}}_{\bf{2}}}\)

\({{\bf{s}}_{\bf{o}}}\) is marked as the start state.

02

Find the final result.

The start state \({{\bf{s}}_{\bf{o}}}\) is also the final state, which implies that the empty strings \({\bf{\lambda }}\) is present in the recognized language.

\({\bf{\lambda }} \in {\bf{L(M)}}\)

To Move from \({{\bf{s}}_{\bf{o}}}\) the final state \({{\bf{s}}_{\bf{1}}}\) (directly), I require that the input is 0 or 1 and thus the bit string 0 and 1 are both in recognized language.

\(0,1 \in {\bf{L(M)}}\)

To move from \({{\bf{s}}_{\bf{o}}}\) to \({{\bf{s}}_{\bf{2}}}\), the input has to be a 1. Then move from \({{\bf{s}}_{\bf{1}}}\)to \({{\bf{s}}_{\bf{2}}}\), the input needs to be 0. However, since there is a loop at \({{\bf{s}}_{\bf{2}}}\) for input 1. The string needs to have at least one 1 before the 0 to go from \({{\bf{s}}_{\bf{o}}}\) to \({{\bf{s}}_{\bf{1}}}\) and \({{\bf{s}}_{\bf{1}}}\) to \({{\bf{s}}_{\bf{2}}}\).

\({\bf{\{ 1\} \{ 1\} *\{ 0\} }} \subseteq {\bf{L(M)}}\)

Therefore, the language generated by the machine is

\({\bf{L(M) = \{ \lambda }},0,1{\bf{\} }} \cup {\bf{\{ 1\} \{ 1\} *\{ 0\} }}\).

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

Find a phrase-structure grammar for each of these languages.

a) the set of all bit strings containing an even number of 0s and no 1s

b) the set of all bit strings made up of a 1 followed by an odd number of 0s

c) the set of all bit strings containing an even number of 0s and an even number of 1s

d) the set of all strings containing 10 or more 0s and no 1s

e) the set of all strings containing more 0s than 1s

f) the set of all strings containing an equal number of 0s and 1s

g) the set of all strings containing an unequal number of 0s and 1s

Determine whether each of these strings is recognized by the deterministic finite-state automaton in Figure 1.

a)010b) 1101 c) 1111110d) 010101010

Use the set of productions to show that each of these sentences is a valid sentence.

a) The happy hare runs.

b) The sleepy tortoise runs quickly.

c) The tortoise passes the hare.

d) The sleepy hare passes the happy tortoise.

Give production rules in Backus–Naur form for the name of a person if this name consists of a first name, which is a string of letters, where only the first letter is uppercase; a middle initial; and a last name, which can be any string of letters.

Find a phrase-structure grammar that generates each of these languages.

\({\bf{a)}}\)the set of bit strings of the form \({{\bf{0}}^{{\bf{2n}}}}{{\bf{1}}^{{\bf{3n}}}}\), where \({\bf{n}}\) is a nonnegative integer

\({\bf{b)}}\)the set of bit strings with twice as many \({\bf{0's}}\) as \({\bf{1's}}\)

\({\bf{c)}}\)the set of bit strings of the form \({{\bf{w}}^{\bf{2}}}\), where \({\bf{w}}\) is a bit string

See all solutions

Recommended explanations on Math 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