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

Using the solution you gave to Exercise 1.25, give a formal description of the machines T1andT2 depicted in Exercise 1.24

Short Answer

Expert verified

The formal description is given below.

Step by step solution

01

Introduce FST

Some theoretical descriptions ofTduring machines T1 and T2 must be defined at this point. The term "finite state transducer" (FST) is used to describe a device that has a finite number of states.(Q,,r,δ,q0) tuple, where

• The finite set of states isQ.

• The input alphabet is.

• The output alphabet is r.

02

Explain the solution

Some theoretical descriptions ofTduring the use of machines T1and T2must be defined at this point. The term

• The transition functiontakes a state and an input symbol and returns a state and an output symbol.

δ:QxQxr

• The start state isq0.

The finite state transducer T1 is formally defined by the ({q1,q2},{0,1,2},{0,1},δ1,q1)., where the transition function δ1 is as follows:

Input State

0

1

2

q1

{q1,0}

{q1,0}

{q1,1}

q2

{q2,0}

{q2,0}

{q2,1}

The second FST is defined as T2=({{q1,q2,q3},{a,b},{0,1},δ1,q1). The transition function δ2 is given by:

Input State

A

B

q1

{q2,1}

{q3,1}

q2

{q3,1}

{q1,0}

q3

{q1,0}

{q2,1}

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

  1. Show that ifis a DFA that recognizes languageB, swapping the accept and non accept states inyields a new DFA recognizing the complement ofB. Conclude that the class of regular languages is closed under complement.
  2. Show by giving an example that ifM is an NFA that recognizes language C swapping the accept and non accept states in Mdoesn’t necessarily yield a new NFA that recognizes the complement of C. Is the class of languages recognized by NFAs closed under complement? Explain your answer.

Let the rotational closure of language A be.

RC(A)={yx|xyA}

a. Show that for any language A, we have RC(A)=RC(RC(A)).

b. Show that the class of regular languages is closed under rotational closure.

Let Σ2be the same as in Problem 1.33. Consider each row to be a binary number and let D={wΣ*2|the top row of w is a larger number than is the bottom row}. For example, 00101100D, but 000111006D. How that D is regular.

For any string w=w1,w2,···,wn, the reverse of w, written wR , is the string w in reverse order,wn···w2w1. For any language A,letAR=wR|wA.Show that if A is regular, so is AR.

A homomorphism is a function f:Σ-Γ*from one alphabet to strings over another alphabet. We can extend f to operate on strings by defining:f(w)=f(w1)f(w2)···f(wn),wherew=w1w2···wnandeachwiΣ.

We further extend fto operate on languages by defining f(A)={f(w)|wA},for any language A.

a. Show, by giving a formal construction, that the class of regular languages is closed under homomorphism. In other words, given a DFA Mthat recognizes Band a homomorphism f, construct a finite automaton role="math" localid="1660800566802" M0that recognizes f(B).Consider the machine role="math" localid="1660800575641" M0that you constructed. Is it a DFA in every case?

b. Show, by giving an example, that the class of non-regular languages is not closed under homomorphism.

See all solutions

Recommended explanations on Computer Science 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