Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

My company has been tasked with building a controller for locking and unlocking a door. Instructions are provided to the controller to govern the state

image text in transcribed

My company has been tasked with building a controller for locking and unlocking a door. Instructions are provided to the controller to govern the state of the door. The instructions are one of L ("lock"), U ("unlock"), or S ("stay"). The controller can be in one of three states: locked, unlocked, or resetting. The controller starts in the locked state. It receives a sequence of L, U, S instructions, and is to respond as follows. If it is locked and receives a L or S, it remains locked. If it is unlocked and receives a U or S, it remains unlocked. If it is locked and receives a U, it becomes unlocked unless the previous instruction (if any) was an L, in which case it becomes resetting. If it is unlocked and receives an L, it becomes locked unless one or both of the two previous instructions (when they exist) was a U, in which case it becomes resetting. When it first becomes resetting, it remains resetting for the next ten instructions and then becomes locked and starts behaving as if it had just commenced operation. (a) Design a DFA with input alphabet {L, U, S} whose states determine the state of the controller in the operation described above. (Your DFA need not have any final states.) (b) Give an English language description of the strings (sequences of instructions) that make the controller locked

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

Step: 3

blur-text-image

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago