Sorting algorithms are a common exercise for new programmers, and for good reason: they introduce many programming ...
The original version of this story appeared in Quanta Magazine. Imagine a town with two widget merchants. Customers prefer cheaper widgets, so the merchants must compete to set the lowest price.