Robot algorithms are abstractions of computational processes that control or reason about motion and perception in the physical world. Because …