I talk with political scientist Henry Farrell about ways in which democracy is a good algorithm for solving problems.