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\) and \(I\) are finite sets such that \(\left| S \right| = n\) and \(\left| I \right| = k\). How many different finite-state automata \(M = \left( {S,I,f,{s_0},F} \right)\) are there where the starting state \({s_0}\) and the subset \(F\) of \(S\) consisting of final states can be chosen arbitrarily

\(a)\)if the automata are deterministic\(?\)

\({\bf{b)}}\)if the automata may be nondeterministic\(?\) (Note: This includes deterministic automata.)

Short Answer

Expert verified

a) There are \({2^n}{n^{nk + 1}}\) finite-state automata are deterministic

b) There are \(n{2^{{n^2}k + n}}\) finite-state automata are nondeterministic

Step by step solution

01

Definition

Product rule If one event can occur in m ways and a second event can occur in n ways, then the number of ways that the two events can occur in sequence is then \(m \cdot n\).

\(M = \left( {S,I,f,{s_0},F} \right)\)is a finite-state automaton

\({s_0}\)is the starting state

S and I are finite sets

\(\left| S \right| = n\)

\(\left| I \right| = k\)

02

(a)The automata are deterministic

A deterministic finite state automaton is a five-tuple \(\left( {S,I,f,{s_0},F} \right)\) where S is the set of states, I is the input alphabet, f is the transition function that assigns the next state to a pair of a state and input, \({s_0}\) is the starting state and F is the set of final states.

There are \(\left| S \right| = n\) possible choices for the starting state \({s_0}\).

The function f has a state and input symbol as input (while there are \(nk\) such possible inputs), while the output of the function is a single state \({s_i}\). Since there are \(\left| S \right| = n\) states, the number of possible functions f is then \((\underbrace {n \times n \times \ldots \times n}_{nk repetitions } = {n^{nk}}\) by the product rule.

Finally, you need to determine the number of possible choices for the set F. For each of the \(\left| S \right| = n\) states, you have 2 options: the state is in F or the state is not in F. The number of possible sets F is then \((\underbrace {2 \times 2 \times \ldots \times 2}_{n repetitions } = {2^n}\) by the product rule.

By the product rule, there are then \(n \times {n^{nk}} \times {2^n} = {2^n}{n^{nk + 1}}\) possible deterministic automata.

Therefore, there are \({2^n}{n^{nk + 1}}\) finite-state automata are deterministic

03

(b) The automata are nondeterministic

A nondeterministic finite state automaton is a five-tuple \(\left( {S,I,f,{s_0},F} \right)\) where S is the set of states, I is the input alphabet, f is the transition function that assigns a set of possible states to a pair of a state and input, \({s_0}\) is the starting state and F is the set of final states.

There are \(\left| S \right| = n\) possible choices for the starting state \({s_0}\).

The set F needs to be a subset of S. For each of the \(\left| S \right| = n\) states, you have 2 options: the state is in F or the state is not in F. The number of possible sets F is then \((\underbrace {2 \times 2 \times \ldots \times 2}_{n repetitions } = {2^n}\) by the product rule.

The function f has a state and input symbol as input (while there are \(nk\) such possible inputs), while the output of the function is a subset of S. Since there are \({2^n}\) subsets of S, the number of possible functions f is then \(\underbrace {{2^n} \times {2^n} \times \ldots \times {2^n}}_{nk repetitions } = {\left( {{2^n}} \right)^{nk}} = {2^{n(nk)}} = {2^{{n^2}k}}\) by the product rule.

By the product rule, there are then \(n \times {2^n} \times {2^{{n^2}k}} = n{2^{{n^2}k + n}}\) possible nondeterministic automata.

Therefore, there are \(n{2^{{n^2}k + n}}\) finite-state automata are nondeterministic

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

Find the output generated from the input string 10001 for the finite-state machine with the state diagram in

a) Exercise 2(a).

b) Exercise 2(b).

c) Exercise 2(c).

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.

Construct a derivation of \({{\bf{0}}^{\bf{2}}}{{\bf{1}}^{\bf{2}}}{{\bf{2}}^{\bf{2}}}\) in the grammar given in Example 7.

Let V = {S, A, B, a, b} and T = {a, b}. Determine whether G = (V, T, S, P) is a type 0 grammar but not a type 1 grammar, a type 1 grammar but not a type 2 grammar, or a type 2 grammar but not a type 3 grammar if P, the set of productions, is

\(\begin{array}{*{20}{l}}{{\bf{a) S }} \to {\bf{ aAB, A }} \to {\bf{ Bb, B }} \to {\bf{ \lambda }}{\bf{.}}}\\{{\bf{b) S }} \to {\bf{ aA, A }} \to {\bf{ a, A }} \to {\bf{ b}}{\bf{.}}}\\{{\bf{c) S }} \to {\bf{ABa, AB }} \to {\bf{ a}}{\bf{.}}}\\{{\bf{d) S }} \to {\bf{ ABA, A }} \to {\bf{ aB, B }} \to {\bf{ ab}}{\bf{.}}}\\{{\bf{e) S }} \to {\bf{ bA, A }} \to {\bf{ B, B }} \to {\bf{ a}}{\bf{.}}}\\{{\bf{f ) S }} \to {\bf{ aA, aA }} \to {\bf{ B, B }} \to {\bf{ aA, A }} \to {\bf{ b}}{\bf{.}}}\\{{\bf{g) S }} \to {\bf{ bA, A }} \to {\bf{ b, S }} \to {\bf{ \lambda }}{\bf{.}}}\\{{\bf{h) S }} \to {\bf{ AB, B }} \to {\bf{ aAb, aAb }} \to {\bf{ b}}{\bf{.}}}\\{{\bf{i) S }} \to {\bf{ aA, A }} \to {\bf{ bB, B }} \to {\bf{ b, B }} \to {\bf{ \lambda }}{\bf{.}}}\\{{\bf{j) S }} \to {\bf{ A, A }} \to {\bf{ B, B }} \to {\bf{ \lambda }}{\bf{.}}}\end{array}\)

Let A = {0, 11} and B = {00, 01}. Find each of these sets.

a) AB b) BA c) \({{\bf{A}}^{\bf{2}}}\)d) \({{\bf{B}}^{\bf{3}}}\)

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