Security and Communication Networks / 2022 / Article / Alg 1 / Research Article
[Retracted] Mitigation Impact of Energy and Time Delay for Computation Offloading in an Industrial IoT Environment Using Levenshtein Distance Algorithm Algorithm 1 Modified delay mitigation Levenshtein distance (MDML).
for iter = 1 to Total Ite initialize random bitstream M if all bits are 0s go to step 2 end if if all bits are 1s go to step 2 end if for k = 1 to k = N Insert correct bitstream in the table if cell K in table is not visited before Calculate self-energy according to equation (2 ) Calculate time according to equation (3 ) Calculate total energy Calculate total time Update the visited table for that cell K Save energy for every tasks E (k ) = E (i , j ) Save time for every tasks T (k ) = T (i , j ) else if this cell K in table is visited before Compare the new total time duration and energy of this cell with previous one if value of new energy cell is less than the existing value Energy of cell K = new calculated energy; Time of cell K = new calculated time; end if Calculate total energy Calculate total time end if if Total Energy is less than or equal to min energy and time less than or equal to time constraint and meet the Levenshtein distance return Total Energy return Total time end if end for end for