Describing Algorithms

Learn how to describe an algorithm in a clear and concise manner.

Effective algorithm design and description

The skills required to effectively design and analyze algorithms are entangled with the skills required to describe algorithms effectively. A complete description of any algorithm has four components:

  • What: A precise specification of the problem that the algorithm solves.
  • How: A precise description of the algorithm itself.
  • Why: A proof that the algorithm solves the problem it is supposed to solve.
  • How fast: An analysis of the running time of the algorithm.
Press + to interact
Four components of an algorithm
Four components of an algorithm

It is not necessary (or even advisable) to develop these four components in this particular order. Problem specifications, algorithm descriptions, correctness proofs, and time analyses usually evolve simultaneously, with the development of each component ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy