Research Article
Secure and Scalable Healthcare Data Transmission in IoT Based on Optimized Routing Protocols for Mobile Computing Applications
Algorithm 1
BAO algorithm pseudocode.
1. Initiate the population size of butter-ants (p), mode of perception (m) | Power exponent (e) and probability switch (s). | 2. Set r =0 | 3. for (J=1:J<=m) do | 4. Create a small beginning colony of butter-ants | 5. Determine all butter-ants' fitness levels. | 6. Apply the equation to determine the butter-ant's fragrance (21). | 7. Decide which butter-ant will provide the greatest overall solution (h*) | 8. end for | 9. Despite not meeting, the stopping criteria (r<n) do | 10. Set r=r+1. | 11. for (J=1:J<=m) do | 12. Create a random number d, d(0,1 | 13. if (t<s) then, | 14. Ensure that butter-ant is at its best (h*) as in equation (22). | 15. Otherwise | 16. As in equation (23), move butter-ant randomly | 17. When end-if | 18. Each butter-ant is evaluated based on its fitness function | 19. end for | 20. Select the best solution for the overall situation (h*) | 21. Calculate the value of sensory modality according to equation (24). | 22. end | 23. Create the best possible solution (h*) |
|