**Algorithm 1** Crowd-based Mix Context.

**Initialization:** *V<sup>i</sup>* : Any vehicle i, *Tx*: Transmission range, *DenThreshold*: Density threshold, *NeigThreshold*: Neighbor threshold, *VD*: Vehicle density, *SPR*: Speed range, *LatencyBroad*: Beacon broadcast latency, *D*: Direction of vehicle **Input:** *SPR*, *D*, *DenThreshold*, *T<sup>x</sup>*

**Output:** Successful pseudonym update process


The neighbor function is used to search and count the number of neighboring vehicles in the transmission range. The procedure of neighbor function is given in Algorithm 2. The speed range, transmission range, and distance are given to the algorithm as input.
