The Ostrich Algorithm
Updated 2026-07-30
Summary
In computer science, the Ostrich algorithm is a strategy that ignores potential problems, taking a dismissive attitude towards possible issues in a computer program (similar to an ostrich burying its head in the sand when encountering danger, pretending not to see). The premise of using the Ostrich algorithm is that the probability of the problem occurring is very low.
Definition
In computer systems, for problems with extremely low occurrence probability but extremely high resolution cost (such as deadlock detection), system designers choose to 'pretend it won't happen' (like an ostrich burying its head in the sand). In engineering, this is often the optimal solution. Scaffold use: rational ignorance. Perfectionism is the enemy of engineering. For bugs or risks that are 'rare and have controllable consequences', explicitly choose 'not to fix', reserving resources for the core path. Acknowledge that 'not solving' is also a solution strategy.
Introduction
How to use
Rational ignorance. Perfectionism is the enemy of engineering. For bugs or risks that are 'rare and have controllable consequences', explicitly choose 'not to fix', reserving resources for the core path. Acknowledge that 'not solving' is also a solution strategy.
Mechanism
In operating systems and concurrent programming, for exceptions with extremely low occurrence probability but extremely high detection and resolution cost (typically deadlock), designers choose to ignore their occurrence and not invest in detection mechanisms. The rationale is that the overhead of handling the problem (performance loss, complexity) may be greater than the loss caused by occasional occurrence, so 'pretending it doesn't happen' is overall better.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- Some early systems adopted the Ostrich algorithm for deadlocks, not actively detecting but relying on restarts or manual intervention; in embedded and high-performance scenarios, giving up strict boundary checks to preserve performance for critical paths also falls into this category.
Common pitfalls
- Equating the Ostrich algorithm with 'laziness'—it is rational ignorance after cost trade-off, requiring clear justification rather than arbitrary neglect. Another misconception is continuing to use old decisions after environmental changes, without re-evaluating when the cost balance is disrupted.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E9%B8%B5%E9%B8%9F%E7%AE%97%E6%B3%95verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS