Once it memorises the map of the house. It remembers where it cleaned last time and starts from a new area. So the process is optimised. And it gets better with time as it learns the lay of the house’s terrain better.