Research Article

Service Recommendation with High Accuracy and Diversity

Algorithm 1: Explore users’ preferences approximately.

Input:
 WSu1, WSu2,…, WSuM: web services used by a user.
r1, r2,…, rM: the rating scores.
: the threshold.
Output:
 P: a set.
1.for to do//assume there are modules
2.   = count(WSui)
3.  for to do
4.    = count(WSui)
5.   
6.  end for
7.  Calculate according to equation (1)
8.  if
9.   then add to P
10.  end if
11.end for
12.return P
Algorithm 1: Explore users’ preferences approximately.