Student writing notes for an academic tutorial
Free tutorial Computer Science 5 min read

How to Explain an Algorithm in Plain Words

Your computer science teacher asks you to explain how an algorithm works in a written report, but without writing any code. You understand the idea when you see it run, but putting it into words feels surprisin...

Tutorial by Dr Jane Free
Complete tutorial
1,069 words

Your computer science teacher asks you to explain how an algorithm works in a written report, but without writing any code. You understand the idea when you see it run, but putting it into words feels surprisingly hard. Many students either write a long list of technical terms or copy a definition from a textbook. A good explanation does neither, because it helps a reader who has never seen the algorithm understand it step by step. This tutorial shows you how to do that.

What an Algorithm Is

An algorithm is a clear set of steps that solves a problem or completes a task. A recipe is a good everyday example, because it lists steps in order to turn ingredients into a meal. In computing, the input is the information you start with, and the output is the result you want. An explanation of an algorithm describes the problem, the steps, and why those steps work. Your goal is to help a reader follow the logic, not to show off technical words.

Step 1: Choose the Algorithm and Know Your Reader

Start by being sure which algorithm you are explaining and what your assignment asks you to cover. Then decide who will read your explanation, such as a classmate who is new to computing or a teacher. Write for a smart reader who does not know the topic yet. This choice helps you decide how much detail to include and which words to explain. If your teacher gave an audience, follow it.

Step 2: State the Problem, Input, and Output

Begin your explanation by describing the problem the algorithm solves, in one or two simple sentences. Then say what goes in and what comes out. For example, a searching algorithm might take a list of names and a name to find, and return the position of that name or a message that it is missing. Clear input and output give the reader a frame for the steps that follow. Keep this part short and concrete.

Step 3: Use an Everyday Comparison

A familiar comparison makes a new idea easier to grasp. You might compare sorting to arranging books on a shelf, or searching to guessing a number in a game. Choose a comparison that matches the algorithm closely and does not mislead. Introduce it briefly, and then connect each step of the algorithm to a part of the comparison. Be careful not to stretch the comparison too far, because every comparison has limits.

Step 4: Write the Steps in Order

List the steps of the algorithm in the order they happen, using short, plain sentences. Start each step with an action word, such as "compare," "check," "swap," or "repeat." If a step repeats, say when it stops. Avoid skipping steps that seem obvious to you, because they may not be obvious to your reader. Number the steps if your teacher allows it, to make them easy to follow.

Step 5: Walk Through a Small Example

A worked example is often the best way to make the steps clear. Choose a very small input, such as a list of five numbers, and follow the steps one at a time. Show what changes after each step. Keep the numbers simple, and write what happens in words, not just in symbols. This is a good place to use a short table or diagram if your teacher allows it.

Step 6: Explain Why It Works and How Fast

Go beyond the steps and explain why the algorithm gives the right answer. Give one or two sentences of reasoning, such as "each step removes half of the possible answers." Then say something simple about efficiency, which is how the amount of work grows as the input gets bigger. You can say that one method needs to look at every item, while another needs far fewer steps. Keep this explanation general unless your course asks for formal terms.

Step 7: Organize, Check, and Cite

Arrange your explanation in a clear order, with the problem first, then the steps, the example, and the reasoning. A short outline, like the one in how to outline an essay, helps. Read your explanation aloud, or ask a friend to read it and tell you where they got lost. Trim long sentences with the tips in how to write more concisely. If you used outside sources, check them with how to evaluate whether a source is credible, and cite them in the style your teacher requires, such as APA format.

Example

Imagine explaining binary search, a way to find a number in a sorted list. The comparison is a guessing game where a friend thinks of a number from 1 to 100 and says "higher" or "lower" after each guess. The steps are to guess the middle number, and if it is too high, ignore the upper half, and if it is too low, ignore the lower half. Then repeat with the remaining half until you find the number. A small example might show a sorted list of seven numbers, where each guess removes about half of what is left. The explanation says that the method works because the list is sorted, and that it needs far fewer steps than checking every number, since even 100 numbers need at most about seven guesses.

Mistakes to Avoid

The most common mistake is using technical words without explaining them. Another is skipping steps that feel obvious. Some students write about what the algorithm is used for but never explain how it works. Others give a comparison that does not match the real steps. A final mistake is forgetting to say when the algorithm stops. Always test your explanation by asking whether a new reader could follow it.

Quick Checklist

  • I chose a clear algorithm and a reader.
  • I stated the problem, input, and output.
  • I used an everyday comparison that fits.
  • I wrote the steps in order with plain words.
  • I walked through a small example.
  • I explained why it works and how the work grows.
  • I followed my teacher's format and citation rules.

Closing Thoughts

Explaining an algorithm is really about teaching a way of thinking. Start with the problem, describe the steps clearly, and show a small example. Then explain why the method works in simple terms. If you can make a new reader understand it, you understand it well yourself. That skill will help you in every computing course and in any job where you must explain complex ideas.