The ideaTheory
Birds of a feather flock together
That is the professor's own phrase for it, and it is the whole algorithm.
You are handed an unlabelled point. Look at the handful of labelled points nearest to it. Whatever most of them are, that is your answer.
No equation is fitted, no coefficients are estimated. The training data is the model.