Some scientists at Cornell University wrote the algorithm. The algorithm assigns tags/labels to different objects (walls, floor, tables, etc.). The robot can then be programmed to find a specific object.
Sounds great!
Self: "Go and fetch me a beer"
Robot: "Certainly."