K-Nearest Neighbor (KNN) has important parameters that affect the performance of the KNN. The parameter is the k value and distance matrix. In KNN, the distance between two points is determined by the calculation of the distance matrix. In this paper, we will analyze and compare the performance KNN