You’re not imagining it, Morrisons really does play the best music in the country. We go 'Behind the Music', VH1-style, with retail's best algorithmic DJ. *Daft Punk used for illustrative purposes only*
Millions of problems are addressed by the field of metaheuristics, which is about developing algorithms that help you come up with the best possible answer in any situation where there are a large number of possible solutions.
Here's a dirty secret about systems like the Boris bike: Bikes don't end up distributed evenly across the system, so most cities use trucks to shuffle the bikes around to where they're needed most at different times of day.