###
Algorithms /
K Nearest Neighbors
»

In classical algorithms, the programmer provides the f(x).
In ML, computers learns from data to find the best f(x).
The KNN algorithm searches for the k nearest neighbors.
It calculates the distance between the points.

Who provides the f(x) in classical algorithms?
How are machine learning algorithms different?
What does the KNN algorithm search for?
How does the KNN algorithm find the neighbors?