How does Google sell ad space and rank webpages? How does Netflix recommend movies and Amazon rank products? How can …