View full-text article in PMC Sensors (Basel). 2022 Oct 28;22(21):8285. doi: 10.3390/s22218285 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 2: Calculating Trust Value (TV(Vn)) Input: Vehicle map: Vn,Rs,ω, Output: TV(Vn) TV(Vn): for TVm(Vn) do if TV(Vn) exists in database then update label to ω(Vn) end if if TVVn′==TVVN′ then calculate TV(Vn) by Equation (5) end if if ω(Vn) exists in the database then calculate TV(Vn) by Equation (4) end if end for update TV(Vn)