Consider the following State Transition Table from our text. This is the State Transition Table we were given for Ben Bitdiddle's modified traffic light system. This modified version has a Parade Mode built into it. Remember that when the system goes into Parade Mode, the desired behavior is that Academic Ave will be shut down with a red light, and Bravado Blvd will be opened up and stay open as long as the parade is taking place. Once the parade had finished, a Facilities Manager will turn Parade Mode off (by asserting the R, Return to Normal Mode, signal), taking it out of Parade Mode and eventually (hopefully) returning the system to the initial state, S0. Here's the State Transition Diagram for the modified system with Parade mode. Note: P = Parade Mode, R = Return to Normal Mode. PT.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Consider the following State Transition Table from our text. This is the State Transition
Table we were given for Ben Bitdiddle's modified traffic light system. This modified version
has a Parade Mode built into it. Remember that when the system goes into Parade Mode,
the desired behavior is that Academic Ave will be shut down with a red light, and Bravado
Blvd will be opened up and stay open as long as the parade is taking place. Once the
parade had finished, a Facilities Manager will turn Parade Mode off (by asserting the R,
Return to Normal Mode, signal), taking it out of Parade Mode and eventually (hopefully)
returning the system to the initial state, S0.
Here's the State Transition Diagram for the modified system with Parade mode.
Note: P = Parade Mode, R = Return to Normal Mode.
PTA
PTA
RTA
Reset
PT.
RT.
so
La green
L red
S1
RTA
S5
La yellow
P
L red
S4
L green
L red
La: yellow
R red
PTA
PT
S3
Lại red
L yellow
S2
L red
L green
S7
L red
L yellow
S6
L red
Le green
PTB
RTe
RT.
As we discussed, there appears to be at least one flaw in this new design, and maybe
more. One flaw is that if we are in State S0 (traffic is on Academic Ave), and the Facilities
Manager sets the system into Parade Mode, the system will transition to State S4. But
none of the traffic lights are changed, so people walking on Academic Ave can just keep
walking. The problem appears to be that as long as there is traffic on Academic Ave, we
stay in State S4 (due to R'Ta). We will stay in that mode for an unbounded amount of time
as long as the traffic sensor Ta tells us there is continuing traffic on Academic Avenue. As a
result, the Parade could be held up and prevented from starting for a very long time. This
would not be good.
Question: What if we removed the PTa edge from S0 to S4 above (the second edge from
the top) and added an edge from S0 to S1 labeled simply P? Would that solve the problem
and let the parade begin ASAP? Why or why not? If yes, explain why. If not, say so and
explain why not. And if this doesn't solve the problem, can you find an alternative way to
solve it?
Transcribed Image Text:Consider the following State Transition Table from our text. This is the State Transition Table we were given for Ben Bitdiddle's modified traffic light system. This modified version has a Parade Mode built into it. Remember that when the system goes into Parade Mode, the desired behavior is that Academic Ave will be shut down with a red light, and Bravado Blvd will be opened up and stay open as long as the parade is taking place. Once the parade had finished, a Facilities Manager will turn Parade Mode off (by asserting the R, Return to Normal Mode, signal), taking it out of Parade Mode and eventually (hopefully) returning the system to the initial state, S0. Here's the State Transition Diagram for the modified system with Parade mode. Note: P = Parade Mode, R = Return to Normal Mode. PTA PTA RTA Reset PT. RT. so La green L red S1 RTA S5 La yellow P L red S4 L green L red La: yellow R red PTA PT S3 Lại red L yellow S2 L red L green S7 L red L yellow S6 L red Le green PTB RTe RT. As we discussed, there appears to be at least one flaw in this new design, and maybe more. One flaw is that if we are in State S0 (traffic is on Academic Ave), and the Facilities Manager sets the system into Parade Mode, the system will transition to State S4. But none of the traffic lights are changed, so people walking on Academic Ave can just keep walking. The problem appears to be that as long as there is traffic on Academic Ave, we stay in State S4 (due to R'Ta). We will stay in that mode for an unbounded amount of time as long as the traffic sensor Ta tells us there is continuing traffic on Academic Avenue. As a result, the Parade could be held up and prevented from starting for a very long time. This would not be good. Question: What if we removed the PTa edge from S0 to S4 above (the second edge from the top) and added an edge from S0 to S1 labeled simply P? Would that solve the problem and let the parade begin ASAP? Why or why not? If yes, explain why. If not, say so and explain why not. And if this doesn't solve the problem, can you find an alternative way to solve it?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Processes of 3D Graphics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education