Elephant in Cairo

An elephant in Cairo is a term used in computer programming to describe a piece of data that matches the search criteria purposefully inserted at the end of a search space, in order to make sure the search algorithm terminates; it is a humorous example of a sentinel value. The term derives from a humorous essay circulated on the Internet that was published in Byte magazine in September 1989, describing how various professions would go about hunting elephants.

Source: Wikipedia — Elephant in Cairo (CC BY-SA 4.0)

Elephant in Cairo

An elephant in Cairo is a term used in computer programming to describe a piece of data that matches the search criteria purposefully inserted at the end of a search space, in order to make sure the search algorithm terminates; it is a humorous example of a sentinel value. The term derives from a humorous essay circulated on the Internet that was published in Byte magazine in September 1989, describing how various professions would go about hunting elephants.

Source: Wikipedia "Elephant in Cairo" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy