What is KNN (k-nearest-neighbor)?

The K-NN algorithm expects the similarity between the new data and accessible cases and puts the new case into the classification that is generally like the accessible classifications. K-NN algorithm saves all the accessible information and groups another information point dependent on the similitude. It is used for Classification problems. The KNN algorithm when gets new information, it characterizes that information into a class that is much like the new information.