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

Suppose that S, I and O are finite sets such that \(\left| S \right| = n, \left| I \right| = k\), and \(\left| O \right| = m\).

\(a)\)How many different finite-state machines (Mealy machines) \(M = \left( {S,I,O,f,g,{s_0}} \right)\) can be constructed, where the starting state \({s_0}\) can be arbitrarily chosen?

\({\bf{b)}}\)How many different Moore machines \(M = \left( {S,I,O,f,g,{s_0}} \right)\) can be constructed, where the starting state \({s_0}\) can be arbitrarily chosen?

Short Answer

Expert verified

a) There are \(n \times {n^{nk}} \times {m^{nk}}\) finite-state machines can be constructed

b) There are \(n \times {n^{nk}} \times {m^n}\) finite-state machines can be constructed

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 

A finite-state automaton\(M = \left( {S,I,f,{s_0},F} \right)\)consists of a finite set\(S\)of states, a finite input alphabet I, a transition function f that assigns a next state to every pair of state and input (so that\(f:S \times I \to S\)), an initial or start state\({s_0}\), and a subset F of\(S\)consisting of final (or accepting states).

02

(a) Finding the finite-state machines 

To specify a machine, you need to pick a start state (this can be done in n ways), and for each pair (state, input) (and there are \(nk\) such pairs), you need to choose a state and an output. By the product rule, therefore, the answer is \(n \times {n^{nk}} \times {m^{nk}}\). A much harder question is to determine how many "really" different machines there are, since two machines that really do the same thing and just have different names on the states should perhaps be considered the same. You will not pursue this question.)

Therefore, there are \(n \times {n^{nk}} \times {m^{nk}}\) finite-state machines can be constructed

03

(b) Detecting the finite-state units

This is just like part (a), except that you do not need to choose an output for each transition, only an output for each state.

Thus, the term \({m^{nk}}\) needs to be replaced by \({m^n}\), and the answer is \(n \times {n^{nk}} \times {m^n}\)

Therefore, there are \(n \times {n^{nk}} \times {m^n}\) finite-state machines can be constructed.

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

Question:Let G = (V, T, S, P) be the phrase-structure grammar with V = {0, 1, A, B, S}, T = {0, 1}, and set of productions P consisting of S โ†’ 0A, S โ†’ 1A, A โ†’ 0B, B โ†’ 1A, B โ†’ 1.

a) Show that 10101 belongs to the language generated by G.

b) Show that 10110 does not belong to the language generated by G.

c) What is the language generated by G?

Express each of these sets using a regular expression.

  1. The set consisting of the strings 0, 11, and 010
  2. The set of strings of three 0s followed by two or more 0s
  3. The set of strings of odd length
  4. The set of strings that contain exactly one 1
  5. The set of strings ending in 1 and not containing 000

Show that a set is generated by a regular grammar if and only if it is a regular set.

Determine whether 1011 belongs to each of these regular sets.

  1. \({\bf{1}}0{\bf{*}}1{\bf{*}}\)
  2. \(0{\bf{*}}\left( {10 \cup 11} \right){\bf{*}}\)
  3. \(1\left( {01} \right){\bf{*1*}}\)
  4. \(1{\bf{*}}01\left( {0 \cup 1} \right)\)
  5. \(\left( {10} \right){\bf{*}}\left( {11} \right){\bf{*}}\)
  6. \(1\left( {00} \right){\bf{*}}\left( {{\bf{11}}} \right){\bf{*}}\)
  7. \(\left( {10} \right){\bf{*}}10{\bf{1}}1\)
  8. \(\left( {1 \cup 00} \right)\left( {01 \cup 0} \right)1{\bf{*}}\)

Describe the set of strings defined by each of these sets of productions in EBNF.

\(\begin{array}{c}\left( {\bf{a}} \right){\bf{string :: = L + D?L + }}\\{\bf{L :: = a }}\left| {{\bf{ b }}} \right|{\bf{ c }}\\{\bf{D :: = 0 | 1}}\\\left( {\bf{b}} \right){\bf{string :: = signD + |D + }}\\{\bf{sign :: = + | - }}\\{\bf{D :: = 0 | 1|2|3|4|5|6|7|8|9}}\\\left( {\bf{c}} \right){\bf{string :: = L*}}\left( {{\bf{D + }}} \right){\bf{?L* }}\\{\bf{L :: = x |y }}\\{\bf{D :: = 0 | 1}}\end{array}\)

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