September 17, 2012 / IST / Story.

Augusta Ada King, Countess of Lovelace (10 December 1815 – 27 November 1852), born Augusta Ada Byron and now commonly known as Ada Lovelace, was an English mathematician and writer chiefly known for her work on Charles Babbage‘s early mechanical general-purpose computer, the analytical engine. Her notes on the engine include what is recognised as the first algorithm intended to be processed by a machine; thanks to this, she is sometimes considered the world’s first computer programmer.

Ada was the only legitimate child of the poet Lord Byron (with Anne Isabella Milbanke, 11th Baroness Wentworth). She had no relationship with her father, who died when she was nine. As a young adult, she took an interest in mathematics, and in particular Babbage’s work on the analytical engine. Between 1842 and 1843, she translated an article by Italian mathematician Luigi Menabrea on the engine, which she supplemented with a set of notes of her own. These notes contain what is considered the first computer program — that is, an algorithm encoded for processing by a machine. Ada’s notes are important in the early history of computers. She also foresaw the capability of computers to go beyond mere calculating or number-crunching while others, including Babbage himself, focused only on these capabilities.

Childhood

Ada was born as Ada Augusta Byron on 10 December 1815, the child of the poet George Gordon Byron, 6th Baron Byron, and his wife, Anne Isabella “Annabella” Milbanke, Baroness Byron. Byron, and many of those who knew Byron, expected that the baby would be “the glorious boy”, and there was some disappointment at the contrary news. She was named after Byron’s half-sister, Augusta Leigh, and was called “Ada” by Byron himself.

On 16 January 1816, Annabella, at Byron’s behest, left for her parents’ home at Kirkby Mallory taking one-month-old Ada with her. Although English law gave fathers full custody of their children in cases of separation, Byron made no attempt to claim his parental rights but did request that his sister keep him informed of Ada’s welfare . On 21 April, Byron signed the Deed of Separation, although very reluctantly, and left England for good a few days later. The acrimonious divorce, with allegations of immoral behaviour against Byron  that Annabella would continue to make throughout her life. This would make Ada famous in Victorian society. Byron did not have a relationship with his daughter and he died in 1824 when she was nine; her mother was the only significant parental figure in her life. She would not even be able to view any portrait of her father until her twentieth birthday. Her mother became Baroness Wentworth in her own right in 1856.

Annabella did not have a close relationship with the young Ada and the child often left her in the care of her grandmother Judith Milbanke, who doted on her. However, due to the social attitudes of the time – which favoured the husband in any separation, with the welfare of any child acting as mitigation – she had to present herself as a loving mother to the rest of society. This included writing anxious letters to her mother about Ada’s welfare, with a cover note saying to retain the letters in case she had to use them to show maternal concern.  In one letter to Judith, she referred to Ada as “it”: “I talk to it for your satisfaction, not my own, and shall be very glad when you have it under your own.”  In her teenaged years, Ada was watched by several close friends of her mother for any signs of moral deviation; Ada dubbed them “the Furies” and would later complain that they had exaggerated and invented stories about her.

Ada was often ill, dating from her early childhood. At the age of eight, she experienced headaches that obscured her vision. In June 1829, she was paralysed after a bout of the measles. She was subjected to continuous bed rest for nearly a year, which may have extended her period of disability. By 1831 she was able to walk with crutches.

Throughout her illnesses, she continued her education. Her mother’s obsession with rooting out any of the insanity of which she accused Lord Byron was one of the reasons that she was taughtmathematics from an early age. Ada was privately schooled in mathematics and science by William FrendWilliam King and Mary Somerville. One of her later tutors was the noted mathematician and logician Augustus De Morgan. From 1832, when she was seventeen, her remarkable mathematical abilities began to emerge, and her interest in mathematics dominated the majority of her adult life. In a letter to Lady Byron, De Morgan suggested that her daughter’s skill in mathematics could lead her to become “an original mathematical investigator, perhaps of first-rate eminence”.

In early 1833, Ada had an affair with a tutor and, after being caught, tried to elope with him. The tutor’s relatives recognised her and contacted her mother; the incident was covered up by Annabella and her friends to prevent a public scandal.

Ada never met her younger half-sister, Allegra Byron, daughter of Lord Byron and Claire Clairmont, who died in 1822 at the age of five. She did, however, have some contact with Elizabeth Medora Leigh, the daughter of Byron’s half-sister Augusta Leigh. Augusta Leigh purposely avoided Ada as much as possible when she was introduced at Court.

Adult years

Ada developed a strong relationship with Mary Somerville, noted researcher and scientific author of the 19th century, who introduced her to Charles Babbage on 5 June 1833. She had a strong respect and affection for Somerville  and the two of them would correspond for many years. Other acquaintances were Andrew CrosseSir David BrewsterCharles WheatstoneCharles DickensFortunato Prandi, and Michael Faraday.

Throughout her life, Ada was strongly interested in scientific developments and fads of the day, including phrenology and mesmerism . Even after her famous work with Babbage, Ada continued to work on other projects. In 1844, she would comment to a friend Woronzow Greig about her desire to create a mathematical model for how the brain gives rise to thoughts and nerves to feelings (“a calculus of the nervous system”), though she would never achieve this: in part, this was down to a long-running preoccupation, inherited from her mother, about her ‘potential’ madness. As part of her research into this project, she visited electrical engineer Andrew Crosse in 1844 to learn how to carry out electrical experiments.  In the same year, she wrote review of a paper by Baron Karl von Reichenbach, ‘’Researches on Magnetism’’, but this was not published and does not appear to have progressed past the first draft.  In 1851, the last year before her cancer struck, she wrote to her mother mentioning “certain productions” she was working on regarding the relation of maths and music.

By 1834, Ada was a regular at Court and started attending various events. She danced often and was able to charm many people and was described by most people as being dainty. However, John Hobhouse, Lord Byron’s friend, was the exception and he described her as “a large, coarse-skinned young woman but with something of my friend’s features, particularly the mouth”.[28] This description followed their meeting on 24 February 1834 in which Ada made it clear to Hobhouse that she did not like him, probably due to the influence of her mother, which led her to dislike all of her father’s friends. This first impression was not to last, and they later became friends.

On 8 July 1835 she married William King, 8th Baron King, becoming Baroness King.  Their residence was a large estate at Ockham Park, in Ockham, Surrey, along with another estate on Loch Torridon and a home in London. They spent their honeymoon at Worthy Manor in Ashley Combe near Porlock WeirSomerset. The Manor had been built as a hunting lodge in 1799 and was improved by King in preparation for their honeymoon. It later became their summer retreat and was further improved during this time. The house was built on a small plateau in woodland overlooking the Bristol Channel and surrounded by terraced gardens in the Italian style.

They had three children; Byron born 12 May 1836, Anne Isabella (called Annabella, later Lady Anne Blunt) born 22 September 1837 and Ralph Gordon born 2 July 1839. Immediately after the birth of Annabella, Lady King experienced “a tedious and suffering illness, which took months to cure”. In 1838, her husband was created Earl of Lovelace. Thus, she was styled “The Right Honourable the Countess of Lovelace” for most of her married life. In 1843-4, Benjamin William Carpenter was assigned by Anabella to teach Ada’s children, as well as to act as a ‘moral’ instructor for Ada.  He quickly fell for her and encouraged her to express any frustrated ‘affections’, claiming that his marriage would mean he’d never act “unbecoming”; when it became clear that Carpenter was trying to start an affair, Ada cut it off.

In 1841, Ada and Medora Leigh (daughter of Lord Byron’s half-sister Augusta Leigh) were told by the former’s mother that Byron, her father, was also Medora’s father. On 27 February 1841, Ada to her mother: “I am not in the least astonished. In fact you merely confirm what I have for years and years felt scarcely a doubt about, but should have considered it most improper in me to hint to you that I in any way suspected”. Ada did not blame the incestuous relationship on Byron, but instead blamed Augusta Leigh: “I fear she is more inherently wicked than he ever was”. This did not prevent Ada’s mother from attempting to destroy her daughter’s image of her father, but instead drove her to attack Byron’s image with greater intensity.

In the 1840s, Ada would flirt with scandals: first from a relaxed relationship with men who weren’t her husband, which led to rumours of affairs [37]; and second her love of gambling, which led to her forming a syndicate with her male friends and an ambitious attempt in 1851 to create a mathematical model for successful large bets. This went disastrously wrong, leaving her thousands of pounds in debt and being blackmailed by one of the syndicate, forcing her to admit her mess to her husband. Ada also had a shadowy, possibly illicit relationship with Andrew Crosse’s son John from 1844 onwards. Few hard facts are known because Crosse destroyed most of their correspondence after her death as part of a legal agreement; however, it was strong enough that she bequeathed him the only heirlooms her father had personally left to her. [39] During her final illness, Ada would panic at the idea of John Crosse being kept from visiting her.

Charles Babbage

Ada Lovelace met and corresponded with Charles Babbage on many occasions, including socially and in relation to Babbage’s Difference Engine and Analytical Engine. They first met through their mutual friend Mary Somerville; Ada became fascinated with his Difference Engine and used her relationship with Somerville to visit him as often as she could. In later years, she became acquainted with Babbage’s Italian friend Fortunato Prandi, an associate of revolutionaries.

Babbage was impressed by Ada’s intellect and writing skills. He called her “The Enchantress of Numbers”. In 1843 he wrote of her:

Forget this world and all its troubles and if
possible its multitudinous Charlatans – every thing
in short but the Enchantress of Numbers.

During a nine-month period in 1842–43, Ada translated Italian mathematician Luigi Menabrea‘s memoir on Babbage’s newest proposed machine, the Analytical Engine. With the article, she appended a set of notes. Explaining the Analytical Engine’s function was a difficult task, as even other scientists did not really grasp the concept and the British establishment was uninterested in it. Ada’s notes had to even explain how the Engine differed from the original Difference Engine.  The notes are longer than the memoir itself and include (Section G), in complete detail, a method for calculating a sequence of Bernoulli numbers with the Engine, which would have run correctly had the Analytical Engine been built (the first complete Babbage Engine was completed in London in 2002). Based on this work, Ada is now widely credited with being the first computer programmer and her method is recognised as the world’s first computer program.  Her work was well received at the time: Michael Faraday would describe himself as a fan of her writing.

Babbage and Ada had a minor falling out when the papers were published, when he tried to leave his own statement (a criticism of the government’s treatment of his Engine) as an unsigned preface – which would imply she’d written that too. When ‘’Taylor’s Scientific Memoirs’’ ruled that the statement should be signed, Babbage wrote to Ada asking her to withdraw the paper. This was the first she knew he was leaving it unsigned and she wrote back refusing to withdraw the paper. HistorianBenjamin Woolley has theorised that “his actions suggested he had so enthusiastically sought Ada’s involvement, and so happily indulged her… because of her ‘celebrated name’”.

Their friendship would recover after this and they continued to correspond. In August 12 1851, when she was dying of cancer, Ada wrote to him asking him to be her executor, though this letter did not give him the necessary legal authority.

Part of the terrace at Worthy Manor was known as “Philosopher’s Walk”, as it was there that Ada and Babbage were reputed to have walked discussing mathematical principles.

Death

Ada Lovelace died at the age of thirty-six, on 27 November 1852, from uterine cancer probably exacerbated by bloodletting by her physicians. The illness lasted several months, in which time Annabella would take command over who Ada saw, and put out exclusion orders on all of her friends and confidants. Under her mother’s influence, she had a religious transformation (after previously being a materialist) and was coaxed into repenting of her previous conduct and making Annabella her executor.  Contact was lost with her husband after she confessed something to him on the 30th August, causing him to abandon her bedside; what she told him is not known but has been theorised as a confession of adultery.

She was buried, at her request, next to her father at the Church of St. Mary Magdalene in HucknallNottingham.

First computer program

In 1842 Charles Babbage was invited to give a seminar at the University of Turin about his analytical engine. Luigi Menabrea, a young Italian engineer, and future prime minister of Italy, wrote up Babbage’s lecture in French, and this transcript was subsequently published in the Bibliothèque Universelle de Genève in October 1842.

Babbage asked Ada to translate Menabrea’s paper into English, subsequently requesting that she augment the notes she had added to the translation. Ada spent most of a year doing this. These notes, which are more extensive than Menabrea’s paper, were then published in The Ladies’ Diary and Taylor’s Scientific Memoirs under the initialism “AAL”.

In 1953, over one hundred years after her death, Ada’s notes on Babbage’s Analytical Engine were republished. The engine has now been recognised as an early model for a computer and Ada’s notes as a description of a computer and software.

Her notes were labelled alphabetically from A to G. In note G, Ada describes an algorithm for the analytical engine to compute Bernoulli numbers. It is considered the first algorithm ever specifically tailored for implementation on a computer, and for this reason Ada is often cited as the first computer programmer. However the engine was not completed during Lovelace’s lifetime.

Controversy over extent of contributions

Though Ada Lovelace is often referred to as the first computer programmer, there is disagreement over the extent of her contributions, and whether she deserves to have been called a programmer. Allan G. Bromley, in the 1990 essay “Difference and Analytical Engines”, wrote, “All but one of the programs cited in her notes had been prepared by Babbage from three to seven years earlier. The exception was prepared by Babbage for her, although she did detect a “bug” in it. Not only is there no evidence that Ada ever prepared a program for the Analytical Engine but her correspondence with Babbage shows that she did not have the knowledge to do so.” Curator and author Doron Swade, in his 2001 book The Difference Engine, wrote, “The first algorithms or stepwise operations leading to a solution—what we would now recognise as a ‘program’, though the word was not used by her or by Babbage—were certainly published under her name. But the work had been completed by Babbage much earlier.”

Historian Bruce Collier went further in his 1990 book The Little Engine That Could’ve, calling Ada not only irrelevant, but delusional:

It would only be a slight exaggeration to say that Babbage wrote the ‘Notes’ to Menabrea’s paper, but for reasons of his own encouraged the illusion in the minds of Ada and the public that they were authored by her. It is no exaggeration to say that she was a manic depressive with the most amazing delusions about her own talents, and a rather shallow understanding of both Charles Babbage and the Analytical Engine… To me, this familiar material [Ada’s correspondence with Babbage] seems to make obvious once again that Ada was as mad as a hatter, and contributed little more to the ‘Notes’ than trouble… I hope nobody feels compelled to write another book on the subject. But, then, I guess someone has to be the most overrated figure in the history of computing.”

Writer Benjamin Woolley would say that while Ada has been proven by biographer Dorothy Stein to have a limited understanding of mathematics (Ada translated a French misprint of “in the case of ‘’n’’”, “le cos n” instead of “cas”, as the nonsensical “the cosine of ‘’n’’”)  she can claim “some contribution”: “Note A, the first she wrote and the one over which Babbage had the least influence, contains a sophisticated analysis of the idea and implications of mechanical computation.”  And that the true importance of her work was that because her notes were “detailed and thorough [a]nd still… metaphysical, meaningfully so”, they were able to explain how the machine worked and “rise[d] above the technical minutiae of Babbage’s extraordinary invention to reveal its true grandeur”.

Babbage published the following on Ada’s contribution, in his Passages from the Life of a Philosopher (1864).

I then suggested that she add some notes to Menabrea’s memoir, an idea which was immediately adopted. We discussed together the various illustrations that might be introduced: I suggested several but the selection was entirely her own. So also was the algebraic working out of the different problems, except, indeed, that relating to the numbers of Bernoulli, which I had offered to do to save Lady Lovelace the trouble. This she sent back to me for an amendment, having detected a grave mistake which I had made in the process.

The “algebraic working out” Babbage describes is the derivation of the mathematical equations 1 through 9 in Note G, not the Table & Diagram in Note G showing punch card flow. The table, not the equations, is considered the first computer program. In Ada’s and Babbage’s letters to each other in 1843, the only contemporary documentation, Ada mentions finding and correcting errors in “our first edition of a Table & Diagram” (Ada frequently used “our” when discussing the Notes in letters with Babbage).