How should I submit my homework?
Please upload to CEIBA as directed.
What are the decision steps of the cars?
You first print out the map (status) of the highway.
One of the cars at the beginning makes the first decision. At time
t, it joins the highway at the beginning mark with the maximum speed
satisfying speed <= 4 AND speed <= (front distance / 2) AND speed >=
1, if possible, immediately (at time t).
One of the cars at the interchange (if available) makes the second
decision. At time t, it joins the highway at the interchange mark with
the maximum speed satisfying speed <= 4 AND speed <= (front distance /
2) AND speed >= 1, if possible, immediately (at time t).
After the first and the second decisions, at time t, cars on the
highway make concurrent decisions, basically adjusting to the maximum
speed satisfying speed <= 4 AND speed <= (front distance / 2) AND
speed >= 0. If the adjusting is in the form of slowing down, the
change happens at time (t+1). If the adjusting is in the form of
speeding up, the change happens at time (t+2) and the car cannot
change the decision at time (t+1).
In the 2nd task, the "accident" happens before any other car
starts making its decision.
All the cars then move themselves to the next mark based on the speed at time t.
How should I treat cars that are not on the highway yet?
You can view them as invisible.
Last updated at CST 13:07, October 04, 2023
Please feel free to contact me: