ArticleslgStudy

computer science

Room 40

Room 40 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 Room 40 rather than just read about it. In short: Room 40, also known as 40 O.B. (old building; officially part of NID25), was the cryptanalysis section of the British Admiralty during the First World War.

Room 40 — main illustration
Room 40 — illustration

Key takeaways

  • Room 40 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 Room 40 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Room 40 from memory before moving on to harder problems.

Reference excerpt

Room 40, also known as 40 O.B. (old building; officially part of NID25), was the cryptanalysis section of the British Admiralty during the First World War. The group, which was formed in October 1914, began when Rear-Admiral Henry Oliver, the Director of Naval Intelligence, gave intercepts from the German radio station at Nauen, near Berlin, to Director of Naval Education Alfred Ewing, who constructed ciphers as a hobby. Ewing recruited civilians such as William Montgomery, a translator of theological works from German, and Nigel de Grey, a publisher. It was estimated that during the war Room 40 decrypted around 15,000 intercepted German communications from wireless and telegraph traffic. Most notably the section intercepted and decoded the Zimmermann Telegram, a secret diplomatic communication issued from the German Foreign Office in January 1917 that proposed a military alliance between Germany and Mexico. Its decoding has been described as the most significant intelligence triumph for Britain during World War I because it played a significant role in drawing the then-neutral United States into the conflict. Room 40 operations evolved from a captured German naval codebook, the Signalbuch der Kaiserlichen Marine (SKM), and maps (containing coded squares) that Britain's Russian allies had passed on to the Admiralty. The Russians had seized this material from the German cruiser SMS Magdeburg after it ran aground off the Estonian coast on 26 August 1914. The Russians recovered three of the four copies that the warship had carried; they retained two and passed the other to the British. In October 1914 the British also obtained the Imperial German Navy's Handelsschiffsverkehrsbuch (HVB), a codebook used by German naval warships, merchantmen, naval zeppelins and U-boats: the Royal Australian Navy seized a copy from the Australian-German steamer Hobart on 11 October. On 30 November a British trawler recovered a safe from the sunken German destroyer S-119, in which was found the Verkehrsbuch (VB), the code used by the Germans to communicate with naval attachés, embassies and warships overseas. Several sources have claimed that in March 1915 a British detachment impounded the luggage of Wilhelm Wassmuss, a German agent in Persia and shipped it, unopened, to London, where the Director of Naval Intelligence, Admiral Sir William Reginald (Blinker) Hall discovered that it contained the German Diplomatic Code Book, Code No. 13040. However, this story has since been debunked. The section retained "Room 40" as its informal name even though it expanded during the war and moved into other offices. Alfred Ewing directed Room 40 until May 1917, when direct control passed to Hall, assisted by William Milbourne James. Although Room 40 decrypted Imperial German communications throughout the First World War, its function was compromised by the Admiralty's insistence that all decoded information would only be analysed by Naval specialists. This meant while Room 40 operators could decrypt the encoded messages they were not permitted to understand or interpret the information themselves.

Background In 1911, a sub-committee of the Committee of Imperial Defence on cable communications concluded that in the event of war with Germany, German-owned undersea cables should be destroyed. In the early hours of 5 August 1914, the cable ship Alert cut Germany's five trans-Atlantic cables, which ran down the English Channel. Soon afterwards, the six cables running between Britain and Germany were cut. There was a significant increase in messages sent via cables belonging to other countries, and messages sent by wireless. These could be intercepted but codes and ciphers were naturally used to hide the meaning of the messages and neither Britain nor Germany had an organisation to decode and interpret the messages. At the start of the war, the navy had only one wireless station for intercepting messages, at Stockton-on-Tees. Installations belonging to the Post Office, the Marconi Company and private individuals who had wireless equipment, began recording messages from Germany. Intercepted messages began to arrive at the Admiralty intelligence division but no one knew what to do with them. Rear-Admiral Henry Oliver had been appointed Director of the Intelligence division in 1913. In August, 1914, his department was fully occupied with the war and no-one had experience of code breaking. Instead he turned to a friend, Sir Alfred Ewing, the Director of Naval Education (DNE), who previously had been a professor of engineering with a knowledge of radio communications and who he knew had an interest in ciphers. It was not felt that education would be a priority during the expected few months' duration of the war; Ewing was asked to set up a group for decoding messages. He turned to staff of the naval colleges Osborne and Dartmouth, who were available, due to the school holidays and to naval students having been sent on active duty. Alastair Denniston had been teaching German but later became second in charge of Room 40, then becoming chief of its successor after the First World War, the Government Code and Cypher School (located at Bletchley Park during the Second World War). Others from the schools worked temporarily for Room 40 until the start of the new term at the end of September. These included Charles Godfrey, the headmaster of Osborne (whose brother became head of naval Intelligence during the Second World War), two naval instructors, Parish and Curtiss and the scientist and mathematician Professor Henderson from Greenwich Naval College. Volunteers had to work at code breaking and their normal duties, the whole organisation operating from Ewing's ordinary office where code breakers had to hide in his secretary's room whenever there were visitors concerning the ordinary duties of the DNE. Two other early recruits were R. D. Norton, who had worked for the Foreign Office, and Richard Herschell, who was a linguist, an expert on Persia and an Oxford graduate. None of the recruits knew anything about code breaking but were chosen for knowledge of German and certainty they could keep the matter secret.

… excerpt ends here. Continue reading the full article.

Illustrations

Room 40: Room 40 was on the first floor of the main wing of The Admiralty's Old Building, now known as the Ripley Building (built 1726) in Whitehall. It was on the same corridor as the old Board Room.
Room 40 was on the first floor of the main wing of The Admiralty's Old Building, now known as the Ripley Building (built 1726) in Whitehall. It was on the same corridor as the old Board Room.
Room 40: SMS Magdeburg aground off Odensholm
SMS Magdeburg aground off Odensholm
Room 40: Zimmermann telegram as decoded by Room 40
Zimmermann telegram as decoded by Room 40

Worked examples

Example 1 — a first encounter with Room 40

Start with the simplest possible case. Write down what Room 40 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 Room 40 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 Room 40 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 Room 40

In research
Room 40 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 Room 40 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
Room 40 is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1914 establishments in the United Kingdom, 1919 disestablishments in the United Kingdom, Cryptography organizations, so understanding it makes those chapters shorter.
In everyday life
Look for Room 40 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 Room 40 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Room 40 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 Room 40 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Room 40 in simple terms?

Room 40, also known as 40 O.B. (old building; officially part of NID25), was the cryptanalysis section of the British Admiralty during the First World War.

Why does Room 40 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 Room 40?

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 Room 40.

Tags

  • 1914 establishments in the United Kingdom
  • 1919 disestablishments in the United Kingdom
  • Cryptography organizations
  • Government agencies established in 1914
  • History of cryptography
  • Individual rooms
  • Locations in the history of espionage
  • Military history of the United Kingdom during World War I
  • Military units and formations of the Royal Navy in World War I
  • Royal Navy shore establishments
  • Signals intelligence of World War I
  • United Kingdom in World War I

Keep exploring