Question

a. Design a FSA that will recognize sentences such as “The dog that chased the cat...

a. Design a FSA that will recognize sentences such as “The dog that chased the cat that ate the mouse lived in the house that Jack built.” Namely, the sentences should look like “The ANIMAL1 that VERBED1 the ANIMAL2 that VERBED2 the ANIMAL3 … VERBED3 in the house that Jack built.”, where ANIMALn is an animal and VERBEDn is a past-tense verb, and where the maximum n can be arbitrarily large. Assume that words are fed to the FSA one at a time (not a character at a time), and your FSA may include two special transitions, one that tests whether a word represents an animal, and one that tests whether a word is a verb.

b. Design a FSA that will recognize sentences such as “The mouse the cat the dog chased ate lived in the house that Jack built.”, namely “The ANIMAL1 the ANIMAL2 the ANIMAL3 …VERBED3 VERBED2 VERBED1 in the house that Jack built.” Assume that n ≤ 3 and that you have the same special transitions available.

c. For part (b), would it be possible to design an FSA that would work for any depth n? Why or why not? What is different between the FSA is part (a) and in part (b)?

Homework Answers

Answer #1

Please find the FSA below:

A)

B)

c)

If we have the whole animal set and verb set it is possible to design an FSA for both a and b. FSA would work for depth n , cause it can go in a loop.

The main difference betwen part a and part b is the limit. Part a wil for such a long sentences but part b wont as n should b less than or equal to 3.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • Suppose that people's heights (in centimeters) are normally distributed, with a mean of 170 and a...
    asked 2 minutes ago
  • Use the information from the following Income Statement to create and Projected Income Statement and solve...
    asked 15 minutes ago
  • An unequal tangent vertical curve has the following elements: g1=-3.25%, g2=75%, total length = 500.00’, length...
    asked 17 minutes ago
  • Please write clear definitions of the following legal terms. Commerce Clause Supremacy Clause Indictment Tort
    asked 22 minutes ago
  • Do you think Moralistic Therapeutic Deism is an accurate reflection of society today? What are relevant...
    asked 26 minutes ago
  • The mean operating cost of a 737 airplane is $2,071 per day. Suppose you take a...
    asked 35 minutes ago
  • Arguments can be made on both sides of this debate about the ethical implications of using...
    asked 41 minutes ago
  • In the Chapter, they mention the idea of strategizing around your cash flows. Why are cash...
    asked 47 minutes ago
  • Company A signed a fixed-price $6,500,000 contract to construct a building. At the end of Year...
    asked 47 minutes ago
  • An unequal tangent vertical curve has the following elements: g1=-3.25%, g2=1.75%, total length = 500.00’, length...
    asked 54 minutes ago
  • In a previous​ year, 61​% of females aged 15 and older lived alone. A sociologist tests...
    asked 1 hour ago
  • Topic: Construction - Subsurface Investigation (Note: Briefly discuss in your own words, 1 paragraph minimum.) Typically...
    asked 1 hour ago