Skip to main content
. 2022 Oct 28;22(21):8285. doi: 10.3390/s22218285
Algorithm 1: Calculating Trust value matrix (TVm)
  • Input: Vehicle map: (Vn,Rs),β,θ

  • Output:(TVm) for every (Vn)

  • while tT do

  •     TVM:

  •     Select Vn from Vn

  •     //Vn collect data on Vn

  •     //Vn forward data to Rs

  •     if nNVn(TyAz) then

  •         calculate PDR(Vn) by Equation (1)

  •     end if

  •     if nNVn(λiγj) then

  •         calculate PD(Vn) by Equation (2)

  •     end if

  •     for VnVn do

  •         update trust matrix TVM(Vn) by Equation (3)

  •     end for

  • end while