Research Article

Designing Efficient Mobile Gateway for Impoverished Regions Based on Self-Learning Strategy

Algorithm 2

The pseudocode of -means utilization.
(1)  determine the relevant parameters and dimension
     of vector ;
(2)  initiating the collection for data streams;
(3)  if  all available paths could be used  then
(4)   set based on formula (5);
(5)  else  set = limited path selections possibility;
(6)  end if
(7)  set by random vectors of group ;
(8)  while  the formula (7) is not found
(9)   for  data stream number
(10)   for  group number   from  1  to    step 1
(11)    calculate the value of ;
(12)    if    then
(13)     set ,  set ;
(14)    end if
(15)   end for
(16)   include this data stream into group ;
(17)    end for
(18)    calculate the based on the latest values;
(19)    end while