The algorithm consists of 4 steps.
Calculate distance from the test point to every other point.
Click on the canvas on left to add a point and start the algorithm
Sort all the distances in ascending order
Click here to start
Filter & Vote the distances based on k values
Click on the slider to start. In this case, the algorithm will start with default value. Alternatively you can drag the slider. Current K value is:3
Voting result will be declared here.