Skip to main content
Scientific Principles

Algorithms

An algorithm is an automated set of rules defining a series of steps or procedures to achieve a desired outcome, often expressed as If-Then statements. They are fundamental to computing and also appear in biological systems.

THE IDEA

20. Algorithms

An algorithm is an automated set of rules defining a series of steps or procedures that result in the desired outcome. It is stated in the form of if-then statements. Algorithms are widely used in computing but are also evident in biological systems.

When to use it

  • Writing a step-by-step recipe for cooking.

  • Implementing a search algorithm to find data in a database.

  • Modeling the decision-making process of a chess-playing program.

  • Understanding the cascade of enzymatic reactions in metabolism as an algorithm.

FROM THEORY TO EVERYDAY LIFE

In practice

01

Sorting Algorithms in Computing

A sorting algorithm like QuickSort follows a set of if-then rules to arrange a list of numbers in ascending order, comparing elements and swapping them based on specific conditions.

02

DNA Replication in Biology

DNA replication is a biological algorithm where enzymes follow precise if-then steps: if a base pair is mismatched, repair mechanisms are triggered; elongation proceeds in a fixed sequence.

✳

A MOMENT TO REFLECT

Put it to work.

  1. What everyday activity can you break down into an algorithm of if-then statements?

  2. How do biological algorithms (e.g., in immune response) differ from man-made computer algorithms?

  3. Can you identify a situation where using an algorithm is less efficient than a heuristic?

Connected ideas

Another lens can bring the same problem into focus.

Often confused with

CONTINUE THE CONVERSATION

Source texts

  • Thinking in Systems and Mental Models Think Like a Super Thinker (Dawson, Marcus P)
← More scientific principles