Imagine a robot stacking boxes in a warehouse when it suddenly sees that one box is in the wrong stack. It goes back and puts the container in the right place. How did the machine know it had made a ...