where Quiuj indicates the number of identical items between two recommendation lists for user ui and user uj .And N indicates the length of the recommended list. The average Hamming distance between all list pairs is the Hamming distance of the whole system. The diversity ofrecommendation is proportional to the average Hamming distance (the larger, the better).