The functions, tasks and ways in which the robot is controlled depend on this algorithm.