Research Article

Adaptive Group Formation in Multirobot Systems

Algorithm 1

Assigning leadership.
Input: Agents in a system
Output: Assigned Leader of the system
(1) Assign the Leadership to any random agent within the
   system;
(2) for     to     do
(3) Assign a candidate leader to the nthCounter agent
  in the system;
(4)Compute the of the candidate
  leader;
(5)  if  current leader   candidate
   leader   then
(6)   Assign the candidate leader to be the current
            leader;