Research Article
A Smart Trust Management Method to Detect On-Off Attacks in the Internet of Things
Algorithm 1
The smart trust management method algorithm.
input: A metadata () | output: A predicted type: (, , ) | (1) ; | (2) ; | (3) ; | (4) ; | (5) āāāif in then | (6) āāā | āāā; | (7) āāā; | (8) āāāifthen | (9) āāāifāā and and | āāāthen | (10) āāā; | (11) āend | (12) āif != and | āthen | (13) ā; | (14) āend | (15) āif != and | āthen | (16) ; | (17) end | (18) end | (19) end | (20) ; |
|