Instagram engineers faced a Herculean task in early 2016. Fearing that people would miss the most important posts, Instagram’s leadership asked the engineers to transform the chronological photo feed into a curated list of posts based on users’ individual preferences.

Development of a similar algorithm for Facebook’s News Feed, which determines what 2 billion Facebook users see, required an enormous investment of time by some of the world’s most highly compensated engineers.

...