The algorithm consists of 4 steps.
  1. Calculate distance from the test point to every other point. [Done] Click on the canvas on left to add a point and start the algorithm
  2. Sort all the distances in ascending order [Done] Click here to start
  3. Filter & Vote the distances based on k values [Done]

    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.