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.
An algorithm is a list of rules to follow in order to complete a task or solve a problem. The steps in an algorithm need to be in the right order. Think about an algorithm for getting dressed in the ...