Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Putting theory to Practice, ) As I talked in class, machines /programs are to regulate event sequences. In theory, we study various automata (such as

image text in transcribed

(Putting theory to Practice, ) As I talked in class, machines /programs are to regulate event sequences. In theory, we study various automata (such as finite automata, etc) to accept a regular language. However, in practice, trying to regulate a desired sequence pattern for events is not easy at all. here is a problem that you want to solve. There are two kids A and B and there are two apples c, d on the table. Each kid wants to pick up an apple from the table, holds it for a while, and puts it back to the table. Therefore, there are the following kinds of events: A idles; B idles; A picks up c; A picks up d; B picks up c; B picks up d; A puts back c; A puts back d; B puts back c; B puts back d. Notice that, as usual, we assume the interleaving model: at any moment there is at most one event is happending (e.g., A and B can not pick up apple at the same time - this is not possible in computer science). Intially, A and B holds no apple and the two apples c and d are on the table. I want to regulate the event sequences so that at any time, any kid can not hold two apples. Obviously, you need additional control on how the kids are going to behave. Can you design such a control for the kids? (Putting theory to Practice, ) As I talked in class, machines /programs are to regulate event sequences. In theory, we study various automata (such as finite automata, etc) to accept a regular language. However, in practice, trying to regulate a desired sequence pattern for events is not easy at all. here is a problem that you want to solve. There are two kids A and B and there are two apples c, d on the table. Each kid wants to pick up an apple from the table, holds it for a while, and puts it back to the table. Therefore, there are the following kinds of events: A idles; B idles; A picks up c; A picks up d; B picks up c; B picks up d; A puts back c; A puts back d; B puts back c; B puts back d. Notice that, as usual, we assume the interleaving model: at any moment there is at most one event is happending (e.g., A and B can not pick up apple at the same time - this is not possible in computer science). Intially, A and B holds no apple and the two apples c and d are on the table. I want to regulate the event sequences so that at any time, any kid can not hold two apples. Obviously, you need additional control on how the kids are going to behave. Can you design such a control for the kids

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

Explain what is meant by the statement, A tort is a civil wrong.

Answered: 1 week ago

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago