AI ART Discover · Learn · Create
A AI Glossary Term • Term 12 of 224
Plain English Definition

What does “Algorithm” mean?

Core Definition

A defined set of rules or steps that a computer follows to solve a problem or complete a task.

Operational Mechanism

How Algorithm Works

1

Input: a list of numbers

2

Step 1: compare neighbors

3

Step 2: swap if out of order

4

Repeat until sorted

5

Output: sorted list.

Real-World Scenario

Practical Example

A recipe is an algorithm for cooking: the same steps in the same order give a predictable dish. In software, a sorting algorithm takes a shuffled list of names and follows fixed rules until the list is in alphabetical order.

Core Significance

Why It Matters

Every AI system is built from algorithms, from the training procedure to the code that runs the model. Understanding that algorithms are step-by-step rules makes it clearer where human choices enter.

Expert Q&A

Common Questions About Algorithm

Q: Is an algorithm the same as AI?

No. An algorithm is any defined set of steps. AI uses algorithms, but many algorithms, such as a simple sort, involve no learning.

Q: Do algorithms always give the same result?

Deterministic algorithms do for the same input. Some, including many AI methods, use randomness and can give different results on different runs.

Q: Who writes the algorithm in machine learning?

People write the learning algorithm, but the model's behavior also depends on the data it learns from, which is why data quality matters.