# Algorithm

> A set of clear steps that solves a problem. Programs are built from them.

**Field:** Software Development  
**Category:** Algorithms & Data Structures  
**Also known as:** Algorithms

## Think of it like

Think of it like a recipe. Follow the steps in order, and you get the same cake each time.

## Definition

An algorithm is a set of clear steps that solves a problem. Given the same input, it always reaches an answer. Sorting a list, finding the shortest road and searching a page all use algorithms. One problem can have many algorithms, and some are much faster. A program is algorithms written in a language a computer can run.

## Example

Jack's map app uses an algorithm to find the quickest way home. It checks many roads and picks the one that takes 12 minutes.

## Why it matters

A better algorithm can turn a job of hours into a job of one second.

## Common mistake

Thinking an algorithm is a piece of code. It is the idea of the steps; code is one way to write it down.

## Three principles

- **Clear steps.** No guessing about what comes next.
- **It finishes.** With an answer every time.
- **Many per problem.** Some much faster.

## Related terms

- [Big O Notation](https://learn.benibix.com/term/development/big-o-notation)
- [Data Structure](https://learn.benibix.com/term/development/data-structure)
- [Program](https://learn.benibix.com/term/development/program)
- [Sorting Algorithm](https://learn.benibix.com/term/development/sorting-algorithm)
- [Pseudocode](https://learn.benibix.com/term/development/pseudocode)

## Told apart from

- [Pseudocode vs Algorithm](https://learn.benibix.com/compare/pseudocode-vs-algorithm): An algorithm is the list of steps that solves a problem. Pseudocode is one way to write those steps down, in plain words, before they become real code.

---

Source: https://learn.benibix.com/term/development/algorithm
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
