Research Article
A Lightweight Authentication with Dynamic Batch-Based Group Key Management Using LSTM in VANET
Algorithm 1
Average waiting time experiment process.
| Input: number of nodes n, average request cycle time tp. | | Output: average request waiting delay | (1) | request = = false; | (2) | while(int i ≤ n) | (3) | { if(request) | (4) | { = − ; | (5) | W = + Tag; | (6) | queue.add(W); | (7) | for(int m = 0; m < queue.size(); m++) | (8) | { int sum+ = queue.get(m) | (9) | if(sum ≥ 7){ | (10) | then trigger a new update; | (11) | = current time; } | (12) | break; | (13) | } | (14) | } | (15) | } | (16) | for(int m = 1; m<= ; m++) | (17) | { = -; | (18) | ; | (19) | } | (20) | ; | (21) | return ; |
|