Ada Lovelace, the daughter of the poet Lord Byron, is credited with writing the first computer algorithm in the mid-19th century. Working with Charles Babbage on his 'Analytical Engine' (a theoretical mechanical computer), she realized that the machine could do more than just crunch numbers. She wrote a series of notes that included a method for calculating Bernoulli numbers, which is recognized as the first computer program. Lovelace described her approach as 'poetical science,' believing that machines could eventually create music and art if they were given the right instructions. Her work bridged the gap between the industrial logic of the 1800s and the digital revolution of the 1900s, making her a visionary figure in both science and literature.