Answered step by step
Verified Expert Solution
Question
1 Approved Answer
With all this in mind, construct an FSM that simulates the work of a pressure plate built into the road at an intersection. For simplicity's
With all this in mind, construct an FSM that simulates the work of a pressure plate built into the road at an intersection. For simplicity's sake, a traffic light will turn green when a car is on it, and it will turn red when a car drives away. Let's assume the pressure plate starts with no car on it, so there's a red light. Don't worry about accepting states in this case. The arbitrary number "0" denotes a car is off the plate, and "1" means a car is on the plate. (It may be easier to think of input 0 as capturing "a car leaves the plate" or "the plate continues to be empty" and input 1 as "a car enters the plate" or "the plate continues to be depressed"). Output "a" when the light color changes and "b" when it doesn't. Note that this machine shouldn't have any accepting states (nor do we have to define/think about a starting state per se)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started