Research Article

A Service Recommendation Method Based on Requirements for the Cloud Environment

Algorithm 1

Construction of user community.
Input: data , centers of the initial user communities
Output: user communities
(1)repeat
(2)for each user that does not belong to the set {} do
(3);
(4)  for each () do
(5)   compute the similarity between and using (3);
(6)   ifthen
(7)    ;
(8)    ; //record the center
(9)   end if
(10)  end for
(11)  Add to the community ;
(12)end for
(13)for each () do//the center of each community is redetermined
(14)  for each service () do
(15)   ;
(16)  end for
(17)  ;
(18)  for each user in do
(19)   );
(20)   ;
(21)   ifthen
(22)    ;
(23)    ; //update the center
(24)   end if
(25)  end for
(26)end for
(27)until each () converge