Algorithm 1: Calculating Trust value matrix
|
Input: Vehicle map:
Output: for every
while do
:
Select from
// collect data on
// forward data to
if then
calculate by Equation (1)
end if
if then
calculate by Equation (2)
end if
for do
update trust matrix by Equation (3)
end for
end while
|