Skip to content

Glossary: Algorithms Beyond the Basics in Java

INF (Integer.MAX_VALUE)

Also written: INF, Integer.MAX_VALUE, MAX_VALUE

The largest `int`, used to mean "not possible yet" in a table or distance map because it loses every smaller-than comparison. Never add to it, since it wraps to a negative number.

Where the book teaches it

Related terms

overflow