In the 1840s, Ada Lovelace wrote the world’s first machine algorithm for an early computer that existed only on paper.