(Latest Revision: 11/10/2000)

Concurrent Walking Robot Program: Part B


THE ASSIGNMENT:

This assigment is the same as the problem described in: roboAsg-A except that the solution must have the following additional property:

Bounded Waiting Requirement:

There must exist a bounding function f(N) such that
  1. If R is a robot that has declared its intent to pass through the hallway (it does this by making a call to "CheckInToHall"), then other robots will be allowed to enter the hallway no more than f(N) times after R makes its request to enter, and before that request is granted.
  2. The function f must be a polynomial. For example f(N)=N^^2+ 1 (N-squared plus one) would be allowable. (Incidentally, it's possible to write the program so that f(N) is O(N).)
Here, N represents the number of robots that are vying to enter the hallway at the time t that R makes its request to enter. In other words, N is the number of robots currently running at time t, minus the number of robots that are in the hallway at time t.


WHAT TO TURN IN:


DUE DATE:

For the program due date, see the class schedule.