Research Article
Optimal Parking Slots Reservation and Allocation Problem for Periodic Parking Platforms with Preference Constraints
Algorithm 1
Allocation algorithm of the FCFS.
(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) | 1. | (7) | update . | (8) | else | (9) | . | (10) | end |
|