AI engineering glossary · Data structures algorithms

What is heuristic?

Heuristic: A practical rule or shortcut that finds a good, though not guaranteed optimal, answer quickly. Heuristics are used when exact methods are too slow and can also guide searches such as A*.

Level: intermediateTopic: Data structures algorithms

Heuristic: an example

Always going to the nearest unvisited city is a simple heuristic for delivery routes that gives decent tours without checking all orders.

Related terms

More Data structures algorithms terms

Where you learn it

Heuristic 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.