ArticleslgStudy

computer science

Note G

Note G is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Note G rather than just read about it. In short: Note G is a computer algorithm traditionally attributed to Ada Lovelace that was designed to calculate Bernoulli numbers using the hypothetical analytical engine designed by Charles Babbage. The algorithm was the last note in a series labelled "A" to "G", which were employed as visual aids to accompany Lovelace's English translation of Luigi Menabrea's 1842 French transcription of Charles Babbage's only lecture on t…

Note G — main illustration
Note G — illustration

Key takeaways

  • Note G belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Note G to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Note G from memory before moving on to harder problems.

Reference excerpt

Note G is a computer algorithm traditionally attributed to Ada Lovelace that was designed to calculate Bernoulli numbers using the hypothetical analytical engine designed by Charles Babbage. The algorithm was the last note in a series labelled "A" to "G", which were employed as visual aids to accompany Lovelace's English translation of Luigi Menabrea's 1842 French transcription of Charles Babbage's only lecture on the analytical engine. Her translation, along with her substantial notes on the possibilities of the analytical engine, were published in 1843. In Babbage's 1864 memoir he discusses the creation of the various notes with Lovelace, including note "G". He provided the mathematical formulas for the calculation of the Bernoulli numbers, which Ada converted into a step-by-step table of instructions for the analytical engine; she also spotted a bug for him:

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. Historians like Allan G. Bromley have noted several dozen sample programs prepared by Babbage between 1837 and 1840 (all substantially predating the illustrative notes), though they were never published and were substantially simpler, which has led to, in popular culture, Note G being generally considered to be the first algorithm specifically for a computer, and Lovelace is considered as the first computer programmer. The program described in Note G was not tested in Babbage's or Lovelace's lifetime, as the analytical engine was never built. In the modern era, the algorithm has been tested using modern computing methods and revealed to have a software bug in it due to two variables being swapped in a division operation.

Origin

In 1840, Charles Babbage was invited to give a seminar in Turin on his analytical engine, the only public explanation he ever gave on the engine. During Babbage's lecture, mathematician Luigi Menabrea wrote an account of the engine in French. A friend of Babbage's, Charles Wheatstone, suggested that in order to contribute, Lovelace should translate Menabrea's account. Babbage suggested that she augment the account with appendices, which she compiled at the end of her translation as a series of seven "notes" labelled A-G. Her translation was published in August 1843, in Taylor's Scientific Memoirs, wherein Lovelace's name was signed "A.A.L". In these notes, Lovelace described the capabilities of Babbage's analytical engine if it were to be used for computing, laying out a more ambitious plan for the engine than even Babbage himself had. Lovelace's notes for the article were three times longer than the article itself. In the first notes, she explores beyond the numerical ambitions that Babbage had for the machine, and suggests the machine could take advantage of computation in order to deal with the realms of music, graphics, and language.

Again, it might act upon other things besides number, were objects found whose mutual fundamental relations could be expressed by those of the abstract science of operations, and which should be also susceptible of adaptations to the action of the operating notation and mechanism of the engine. Supposing, for instance, that the fundamental relations of pitched sounds in the science of harmony and of musical composition were susceptible of such expression and adaptations, the engine might compose elaborate and scientific pieces of music of any degree of complexity or extent. She explains to readers how the analytical engine was separate from Babbage's earlier difference engine, and likens its function to the Jacquard machine, in that it used binary punch cards to denote machine language. In note C, this point is furthered by the fact that simultaneous and iterated actions can be made by the machine, ensuring that any card or collection of cards can be used several times in the solution of a single problem, essentially anticipating modern methods of control flow and looping. These ideas were brought to a head in the final note, G, where Lovelace sought to demonstrate an example of computation. Note G only made use of only the four arithmetical operations: addition, subtraction, multiplication and division, the implementation of Babbage's vision:

Under the impossibility of my here explaining the process through which this end is attained, we must limit ourselves to admitting that the first four operations of arithmetic, that is addition, subtraction, multiplication and division, can be performed in a direct manner through the intervention of the machine. This granted, the machine is thence capable of performing every species of numerical calculation, for all such calculations ultimately resolve themselves into the four operations we have just named.It also uses Babbage's idea of storing information in columns of discs, each denoted by V {\displaystyle V} (for variable) and a subscript number denoting which column is being referred to.

Function The algorithm used a recursive equation to calculate Bernoulli numbers, wherein it used the previous values in an equation to generate the next one. The method ran thus:

… excerpt ends here. Continue reading the full article.

Illustrations

Note G: Note G, originally published in Sketch of The Analytical Engine Invented by Charles Babbage
Note G, originally published in Sketch of The Analytical Engine Invented by Charles Babbage
Note G: Ada Lovelace
Ada Lovelace

Worked examples

Example 1 — a first encounter with Note G

Start with the simplest possible case. Write down what Note G claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Note G before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Note G ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Note G

In research
Note G appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Note G in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Note G is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1843 introductions, Ada Lovelace, Algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Note G outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Note G in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Note G means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Note G out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Note G in simple terms?

Note G is a computer algorithm traditionally attributed to Ada Lovelace that was designed to calculate Bernoulli numbers using the hypothetical analytical engine designed by Charles Babbage. The algorithm was the last note in a series labelled "A" to "G", which were employed as visual aids to accom…

Why does Note G matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Note G?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Note G.

Tags

  • 1843 introductions
  • Ada Lovelace
  • Algorithms

Keep exploring