Research Article
Anomaly Detection for Internet of Vehicles: A Trust Management Scheme with Affinity Propagation
Algorithm 1
Supervisor Matching algorithm.
Input: a supervisor , nearby node’ states (position, speed) | Output: pair(supervisor, supervisee) | (1) For Node in DSRC(Dedicated Short Range Communication) range | (2) //calculate mobility metric | (3) If has no supervisor and | (4) Then Add in Supervisee Candidate List | (5) End For | (6) For in Supervisee Candidate List | (7) If Then //find the most stable supervisee | (8) End For | (9) Return matched pair(, ) // supervises |
|