Algorithms know when to stock supermarket shelves, predict the weather, guide a surgeons hand, build works of art, and even ignite the spark of love. They are ubiquitous, yet most of us are unaware of their major impact. So what are these secret rules of modern living?