Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M4061

The Ostrich Algorithm

The Ostrich Algorithm
DecideHigh supportDecision Science
Included
account_tree

Updated 2026-07-30

Loading revision record…

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.

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/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E9%B8%B5%E9%B8%9F%E7%AE%97%E6%B3%95ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS