AI engineering glossary · Data structures algorithms
What is algorithm?
Algorithm: A finite, unambiguous sequence of steps that turns an input into a desired output. Good algorithms are judged by correctness and by how much time and memory they use as the input grows.
Algorithm: an example
Finding the largest number in a list by keeping a running maximum and scanning the list once is an algorithm that takes n steps for n items.
Related terms
More Data structures algorithms terms
- Amortized analysis
- Approximation algorithm
- Array
- AVL tree
- B-tree
- Backtracking
- Base case
- Bellman-Ford algorithm
Where you learn it
Algorithm is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.