Research Article

[Retracted] Swarm Intelligence with Adaptive Neuro-Fuzzy Inference System-Based Routing Protocol for Clustered Wireless Sensor Networks

Algorithm 1

Pseudocode of SSA.
(1)Start:
(2)Read input parameter of SSA
(3)Create random position for number of squirrels
(4)Estimate fitness of all the squirrel positions
(5)Arrange the position of squirrel individual in ascending order on the basis of cost function value
(6)Allocate the squirrel individual on normal tree, hickory nut tree, and acorn nut tree
(7)Arbitrarily chooses squirrel individual from normal tree for shifting towards hickorynut trees and transmits the remaining squirrels to acorn nut trees
(8)While (End condition is false)
(9) For to ( Number of squirrel individuals i.e., gliding from acorn tree to hickory nut trees)
(10)  if
(11)   Upgrade the location of squirrel individuals
(12)  else
(13)   Arbitrarily create the location of squirrel individuals within the searching area.
(14)  end
(15) end
(16) For to ( Number of squirrel individuals i.e., gliding from normal tree to acorn tree)
(17)  if
(18)   Upgrade the location of squirrel individuals
(19)  else
(20)   Arbitrarily create the location of squirrel individuals within the searching area.
(21)  end
(22) end
(23) For to ( Number of squirrel individuals i.e., gliding from normal tree to hickory trees)
(24)  if
(25)   Upgrade the location of squirrel individuals
(26)  else
(27)   Arbitrarily create the location of squirrel individuals within the searching area.
(28)  end
(29) end
(30) Estimate seasonal constant
(31) if
(32)  Randomly reposition the squirrel individual
(33) end
(34)Adjust
(35)end
(36)Output the optimum solution as the squirrel location on hickory nut trees
(37)End