Research Article
Optimal Parking Slots Reservation and Allocation Problem for Periodic Parking Platforms with Preference Constraints
Algorithm 2
Allocation algorithm of the FBFS.
(1) | Input: , , . | (2) | Output: . | (3) | Initialize: sort all parking requests according to their arrival time . | (4) | for do | (5) | if the request can be accepted then | (6) | . | (7) | update . | (8) | else | (9) | . | (10) | end |
|