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.

Level: beginnerTopic: Data structures algorithms

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

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.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.