ArticleslgStudy

computer science

The Adventure of the Dancing Men

The Adventure of the Dancing Men 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 The Adventure of the Dancing Men rather than just read about it. In short: "The Adventure of the Dancing Men" is a Sherlock Holmes story written by Sir Arthur Conan Doyle as one of 13 stories in the cycle published as The Return of Sherlock Holmes in 1905. It was first published in The Strand Magazine in the United Kingdom in December 1903, and in Collier's in the United States on 5 December 1903.

The Adventure of the Dancing Men — main illustration
The Adventure of the Dancing Men — illustration

Key takeaways

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

Reference excerpt

"The Adventure of the Dancing Men" is a Sherlock Holmes story written by Sir Arthur Conan Doyle as one of 13 stories in the cycle published as The Return of Sherlock Holmes in 1905. It was first published in The Strand Magazine in the United Kingdom in December 1903, and in Collier's in the United States on 5 December 1903. This is one of only two Sherlock Holmes short stories where Holmes' client dies after seeking his help. Holmes's solution to the riddle of the dancing men rests on reasoning that closely resembles that of Legrand in Poe's "The Gold Bug." The original title was The Dancing Men, when it was published as a short story in The Strand Magazine in December 1903.

Plot The story begins when Hilton Cubitt of Ridling Thorpe Manor in Norfolk visits Sherlock Holmes and gives him a piece of paper with the following mysterious sequence of stick figures.

Cubitt explains to Holmes and Dr. Watson that he has recently married an American woman named Elsie Patrick. Before the wedding, she had asked her husband-to-be never to ask about her past, as she had had some "very disagreeable associations" in her life, although she said that there was nothing that she was personally ashamed of. Their marriage had been a happy one until the messages began to arrive, first mailed from the United States and then appearing in the garden. The messages had made Elsie very afraid but she did not explain the reasons for her fear, and Cubitt insisted on honouring his promise not to ask about Elsie's life in the United States. Holmes examines all of the occurrences of the dancing figures, and they provide him with an important clue—he realises that they form a substitution cipher and cracks the code by frequency analysis. The last of the messages causes Holmes to fear that the Cubitts are in immediate danger. Holmes rushes to Riding Thorpe Manor and finds Cubitt dead of a bullet to the heart and his wife gravely wounded from a gunshot to the head. Inspector Martin of the Norfolk Constabulary believes that it is a murder-suicide attempt; Elsie is the prime suspect. But Holmes, after noting some inconsistencies in that theory, proves that there is a third person involved. Holmes writes a message—in dancing figure characters—and has it delivered to a lodger named Abe Slaney, another American national at a nearby farm. While waiting for the result of this message, Holmes explains to Watson and Inspector Martin how he cracked the code of the dancing figures. In his explanation, Holmes discusses what happened after he cracked the third message. He telegrammed a friend in the New York Police named Wilson Hargreave asking about Slaney, whose name was in the first message, and Hargreave replied to tell Holmes that Slaney was a deadly criminal from Chicago. The last message, which caused Holmes and Watson to rush to Norfolk, read "ELSIE PREPARE TO MEET THY GOD".

Slaney, unaware that Elsie is gravely wounded, arrives at Ridling Thorpe Manor and is seized as he comes through the door. Holmes had sent for Slaney using the dancing men, knowing that Slaney would believe the message is from Elsie. Slaney reveals that he had been engaged to Elsie, the daughter of the Chicago crime boss for whom Slaney works, and that she had fled to escape her old life. Slaney had come to England to get her back. When Slaney and Elsie were speaking through a window, Cubitt had appeared and shots were exchanged; Cubitt was killed and Slaney had fled. Apparently, Elsie then shot herself. Slaney is arrested and sentenced to hang, but his sentence is reduced to penal servitude because Cubitt had fired the first shot. Elsie recovers from her injuries, and spends her life helping the poor and administering her late husband's estate.

Publication history The story was published in the UK in The Strand Magazine in December 1903, and in the US in Collier's on 5 December 1903. It was published with seven illustrations by Sidney Paget in the Strand, and with six illustrations by Frederic Dorr Steele in Collier's. It was included in the short story collection The Return of Sherlock Holmes, which was published in the US in February 1905 and in the UK in March 1905.

Substitution cipher The mysterious sequence of stick men is a simple substitution cipher; that is, each stick man represents a given letter of the alphabet. The above-mentioned fifth and final message that decodes as "ELSIE PREPARE TO MEET THY GOD" looks like this:

Note how the first stick man repeats in the 5th, 8th, and 12th position: it represents the "e" twice present in the words "Elsie" and "prepare". The first and second time the stick man carries a flag – this denotes the end of a word – both words end with an "e".

Adaptations

… excerpt ends here. Continue reading the full article.

Illustrations

The Adventure of the Dancing Men illustration
The Adventure of the Dancing Men: Slaney is arrested, 1903 illustration by Sidney Paget
Slaney is arrested, 1903 illustration by Sidney Paget
The Adventure of the Dancing Men: 1903 illustration by Frederic Dorr Steele in Collier's
1903 illustration by Frederic Dorr Steele in Collier's
The Adventure of the Dancing Men illustration

Worked examples

Example 1 — a first encounter with The Adventure of the Dancing Men

Start with the simplest possible case. Write down what The Adventure of the Dancing Men 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 The Adventure of the Dancing Men 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 The Adventure of the Dancing Men 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 The Adventure of the Dancing Men

In research
The Adventure of the Dancing Men 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 The Adventure of the Dancing Men 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
The Adventure of the Dancing Men is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1903 English-language short stories, 1903 short stories, British short stories adapted into films, so understanding it makes those chapters shorter.
In everyday life
Look for The Adventure of the Dancing Men 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “The Adventure of the Dancing Men” →

Affiliate

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

How to study The Adventure of the Dancing Men in 20 minutes

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

Frequently asked questions

What is The Adventure of the Dancing Men in simple terms?

"The Adventure of the Dancing Men" is a Sherlock Holmes story written by Sir Arthur Conan Doyle as one of 13 stories in the cycle published as The Return of Sherlock Holmes in 1905. It was first published in The Strand Magazine in the United Kingdom in December 1903, and in Collier's in the United…

Why does The Adventure of the Dancing Men 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 The Adventure of the Dancing Men?

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 The Adventure of the Dancing Men.

Tags

  • 1903 English-language short stories
  • 1903 short stories
  • British short stories adapted into films
  • Encodings
  • Fiction about cryptography
  • Norfolk in fiction
  • Sherlock Holmes short stories by Arthur Conan Doyle
  • Works originally published in Collier's
  • Works originally published in The Strand Magazine

Keep exploring