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 if \({\bf{M = (S,I,f,}}{{\bf{s}}_{\bf{o}}}{\bf{,F)}}\) is a deterministic finite state automaton and f (s, x)=sfor the state s∈Sand the input string x∈I*, then \({\bf{f(s,}}{{\bf{x}}^{\bf{n}}}{\bf{)}}\)=sfor every nonnegative integer n. (Here \({{\bf{x}}_{\bf{n}}}\) is the concatenation of ncopies of the string x, defined recursively in Exercise 37in Section 5.3.)

Short Answer

Expert verified

Hence by the principle of induction, P(n) is true for all positive integers n and \({\bf{f(s,}}{{\bf{x}}^{\bf{n}}}{\bf{) = s}}\) for every nonnegative integer n.

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

Mention given details.

Given \({\bf{M = (S,I,f,}}{{\bf{s}}_{\bf{o}}}{\bf{,F)}}\) is a deterministic finite state automaton.

\({\bf{f }}\left( {{\bf{s, x}}} \right){\bf{ = s}}\)for the states \( \in {\bf{S}}\) and the input string\({\bf{x}} \in {\bf{I*}}\).

02

Proof by induction.

Let P(n) be \({\bf{f(s,}}{{\bf{x}}^{\bf{n}}}{\bf{) = s}}\).

Put \({\bf{n = 0}}\) then:

\({\bf{f(s,}}{{\bf{x}}^{\bf{0}}}{\bf{) = f(s,\lambda ) = s}}\)

Since it remains at the start state when the input is the empty string\({\bf{\lambda }}\)

Thus p(0) is true.

Put \({\bf{n = k}}\) then \({\bf{f(s,}}{{\bf{x}}^{\bf{k}}}{\bf{) = s}}\)

Thus P(k) is true.

Now prove the result for\({\bf{P }}\left( {{\bf{k + 1}}} \right)\).

Since \({{\bf{x}}^{{\bf{k + 1}}}}{\bf{ = }}{{\bf{x}}^{\bf{k}}}{\bf{x}}\)

And \({\bf{f(s,xy) = f(f(s,}}{{\bf{x}}^{\bf{k}}}{\bf{),x)}}\)

Using,

\(\begin{array}{c}{\bf{f(s,}}{{\bf{x}}^{\bf{k}}}{\bf{) = s}}\\{\bf{f(s,x) = s}}\end{array}\)

Then \({\bf{f(s,xy) = f(f(s,}}{{\bf{x}}^{\bf{k}}}{\bf{),x) = f(s,x) = s}}\)

Thus \({\bf{P }}\left( {{\bf{k + 1}}} \right)\)is true.

Therefore, by the principle of induction, P(n) is true for all positive integers n and \({\bf{f(s,}}{{\bf{x}}^{\bf{n}}}{\bf{) = s}}\)for every nonnegative integer n.

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

Show that these equalities hold.

a) \({{\bf{\{ \lambda \} }}^{\bf{*}}}{\bf{ = \{ \lambda \} }}\)

b) \({\bf{(A*)* = A*}}\) for every set of strings A.

For each of these strings, determine whether it is generated by the grammar given for postfix notation. If it is, find the steps used to generate the string.

\(\begin{array}{l}{\bf{a) abc* + }}\\{\bf{b) xy + + }}\\{\bf{c) xy - z*}}\\{\bf{d) wxyz - */ }}\\{\bf{e) ade - *}}\end{array}\)

Give production rule in Backus-Naur form for an identifier if it can consist of

a. One or more lower case letters.

b. At least three but no more than six lowercase letter

c. One to six uppercase or lowercase letters beginning with an uppercase letter.

d. A lowercase letter, followed by a digit or an underscore, followed by three or four alphanumeric characters (lower or uppercase letters and digits.)

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}\)

Give production rules in extended Backus–Naur form that generate a sandwich if a sandwich consists of a lower slice of bread; mustard or mayonnaise; optional lettuce; an optional slice of tomato; one or more slices of either turkey, chicken, or roast beef (in any combination); optionally some number of slices of cheese; and a top slice of bread.

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