Markets, Elections, and Microbes: Data-driven Algorithms from Theory to Practice