Write an algorithm, which tells a robot how to cross a road. I can write simple algorithms like writing a sum of numbers given by users, calculating average, some simple decision making etc. But what should we write in algorithm if we want a robot to cross a road. The traffic on the road may be normal. How to start writing this type of algorithms?
Algorithm based on crossing a road
learning algorithms