The algorithm will help the quadrotor find which one is the NEAREST in the list of 3 axis co ordinates already fed to it.
In case there are more than one points that are found to be nearest, then the algorithm will choose any one among them randomly.
Thus the quadrotor can compute by itself, which is the next nearest point and move itself to that point in air to accomplish a particular task, say image capturing, temperature sensing etc.
Coding language: C
Leave a comment with e mail id to get the code...!!