Anytime Algorithm
Definition
Algorithm in which more available computing time can enable better result quality.
Anytime algorithms allow a balance between computing time and result quality. Interruptible variants provide a preliminary solution after an initial phase. Contract variants, on the other hand, require a predetermined time budget and do not have to deliver a useful result before it expires.
Simply explained
You decide how much computing time a task gets, weighing time and possible solution quality.
Why it matters in practice
Helps to weigh computing time and result quality in time-critical tasks.
Example from business
Example scenario: A planning procedure initially delivers a permitted tour and looks for improvements up to the deadline.
Limits and pitfalls
- See each intermediate result as optimal; ignore start time or quality measure; presuppose interruptibility for each variant.
Origin & history
Zilberstein describes anytime algorithms in 1996 as an approach to weigh calculation time against result quality.
Use in mid-sized companies
- In the case of specialized planning problems, set a time budget, a minimum quality and a suitable demolition behavior.
Frequently asked questions
Is the first result optimal?
Not mandatory.
Can each variant be interrupted at will?
No, it depends on the procedure.
Sources
- Using Anytime Algorithms in Intelligent Systems (1996) · Zilberstein, Using Anytime Algorithms in Intelligent Systems (1996)
Source verification: 10/09/2026. Definition and documented classification verified; examples describe possible applications.
Editorially reviewed on: