Research Article
Hail the Closest Driver on Roads: Privacy-Preserving Ride Matching in Online Ride Hailing Services
Algorithm 1
Best driver selection (BDS).
| Input: . | | Output: . | (1) | for do | (2) | for do | (3) | if then | (4) | ; | (5) | else | (6) | ; | (7) | end if | (8) | if or do | (9) | ; | (10) | end if | (11) | end for | (12) | if or do | (13) | ; | (14) | ; | (15) | end if | (16) | end for | (17) | return; |
|