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

Show that there is no finite-state automaton that recognizesthe set of bit strings containing an equal number of 0s and 1s.

Short Answer

Expert verified

By the pigeonhole principle shows that there is no finite state automaton.

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

Definition

Pigeonhole principle-if k is a positive integer and \(\left( {k + 1} \right)\) or more objects are placed into k boxes, then there is at least one box containing two or more objects.

02

Show that there is no finite state automaton that recognizes the set of bit strings containing an equal number of 0s and 1s.

The result can be show by a contradiction.

Let’s assume that the finite state automaton M accepts the set of bit strings that contains an equal number of 0’s and 1’s.

Let’s assume that M has n states and let’s consider the strings .Since the input contains more than inputs than states, there needs to exists some states that is visited at least twice for the input by the pigeonhole principle.

However,this then implies that M ends up in the same state with the input as the input.Since M accepts, M also needs to accept. This is a contradiction, as M accepts a string that does not contain an equal number of 0’s and 1’s.

Therefore, our assumption is wrong there does not exist a finite-state automaton.

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) Explain what the productions are in a grammar if the Backus–Naur form for productions is as follows:

\(\begin{array}{*{20}{l}}{{\bf{ < expression > :: = }}\left( {{\bf{ < expression > }}} \right){\bf{ }}\left| {{\bf{ < expression > + < expression > }}} \right|}\\\begin{array}{c}{\bf{\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;}}\,\,\,\,{\bf{ < expression > * < expression > |}}\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,{\bf{ < variable > }}\end{array}\\{\,\,\,\,\,\,\,\,\,{\bf{ < variable > :: = xly}}}\end{array}\)

b) Find a derivation tree for \(\left( {{\bf{x*y}}} \right){\bf{ + x}}\) in this grammar.

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

a) the set consisting of the bit strings 0, 1, and 11

b) the set of bit strings containing only 1s

c) the set of bit strings that start with 0 and end with 1

d) the set of bit strings that consist of a 0 followed by an even number of 1s.

In Exercises 16–22 find the language recognized by the given deterministic finite-state automaton

For each of these strings, determine whether it is generated by the grammar for infix expressions from Exercise 40. If it is, find the steps used to generate the string.

\(\begin{array}{*{20}{l}}{{\bf{a) x + y + z}}}\\{{\bf{b) a/b + c/d}}}\\{{\bf{c) m*}}\left( {{\bf{n + p}}} \right)}\\{{\bf{d) + m - n + p - q}}}\\{{\bf{e) }}\left( {{\bf{m + n}}} \right){\bf{*}}\left( {{\bf{p - q}}} \right)}\end{array}\)

a) Construct a phrase-structure grammar for the set of all fractions of the form a/b, where a is a signed integer in decimal notation and b is a positive integer.

b) What is the Backus–Naur form for this grammar?

c) Construct a derivation tree for +311/17 in this grammar.

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