A Novel Secure Cosine Similarity Computation Scheme With Malicious Adversaries
Similarity coefficients play an important role in many aspects. Recently, several schemes were proposed, but these schemes aimed to compute the similarity coefficients of binary data. In this paper, a novel scheme which can compute the coefficients of integer is proposed. To the best knowledge of the user, this is the first scheme which can exist malicious adversaries attack. Cosine similarity is a measure of similarity between two vectors by measuring the cosine of the angle between them. The cosine of 0 is 1, and less than 1 for any other angle; the lowest value of the cosine is -1. The cosine of the angle between two vectors thus determines whether two vectors are pointing in roughly the same direction.