Software Development

Algorithm

Reviewed by Glintr Learn ReviewersUpdated 5 min readArea: Software Development
Quick Answer

What is Algorithm?

An algorithm is a step-by-step procedure that takes an input and produces an output.

Definition

Algorithms are the recipes that software follows to solve problems — from sorting a list to finding the shortest route in a map. They are analysed by correctness and by how their time and memory usage grow with the input size.

Real-world examples

  • Binary search on a sorted list.
  • Dijkstra's algorithm for shortest paths.
  • PageRank for ranking web pages.
Related Concepts
Find your best program