Skip to main content
. 2021 Dec 24;22(1):108. doi: 10.3390/s22010108
Algorithm 1. QoS Trust Evaluation and Development.
Input: Mobile Nodes, Sensors, and IoT Devices
Output: Trust Validate
1:     trust_evolution(I ← j)
2:     jID            //            Trust Identification
3:     JreqI       // Send Request to Trustee i
4:     check: I ← j (ID +Li)
5:     if (j! = Li)
           Go to Algorithm 2
    else
           go to Algorithm 3
    end if
6: Taviij(avi I ← jrel I ← j)
                      // Availability and Reliability
7: TfT_aviij(avii ← jreli ← j
8: if (Tf > 90%)
            service_provider (Ti ← j)
        else if (Tf > 50% && Tf < 90%)
                   network_comm (Ti ← j)
              else
                   dumble_terminal (Ti ← j)
      end if  
9: trust I ← j ( ) ← published ()