A female English mathematician named Ada Lovelace wrote an algorithm in the mid-1800s designed to be carried out by a machine. As a result, she is often regarded as the first computer programmer.