Research Article
Multicriteria Decision Making for Carbon Dioxide (CO2) Emission Reduction
Procedure 1
Multilevel filtering for retrieval of parkings with empty lots within distance r.
| | Procedure mulLevelFirtering (gP, r) | | | Begin | | | Inputs:; //the list of n parkings in SPSD. | | | -Smart parking system’s cloud datacenter | | | –distance of radius r around the vehicle. Its default value is 0.5 mile | | | Output://list of top-k parkings with empty lots | | (1) | | | (2) | if p is within r then | | (3) | if p has Parking hours = Open then | | (4) | if p empLots = Yes then //empLots is a flagged set for parkings in SPSD that has empty lots. | | (5) | update with info of ; //empP is the list of parkings with empty lots. | | (6) | end if | | (7) | end if | | (8) | end if | | (9) | end for | | (10) | sort in ascending order of the distance r; //merge sort algorithm is used | | (11) | <--- assign (, K); //K is an integer representing number of parking in which the driver is interested to consider for parking his/her vehicle | | (12) | return ; | | | End |
|