Bug algorithm

Bug algorithm is a class of algorithm that helps robots deal with motion planning.

[1][2] The most basic form of Bug algorithm (Bug 1) is as follows: