Socratic Mirror
Compression Digest
compression/_posts/2014-05-25-search-algorithms-binary-search-trees.md

Search Algorithms: Binary Search Trees

[Literal] Binary search trees (BST) combine the flexibility of insertion in a linked list with the efficiency of search in an ordered array.
[Literal] A BST is a binary tree where each node's key is larger than all keys in its left subtree and smaller than all keys in its right subtree.
[Literal] A node consists of a key, a value, and references to left (smaller keys) and right (larger keys) subtrees.
[AI Synthesis] The Java implementation demonstrates recursive get and put methods for searching and inserting key-value pairs, respectively.

Key points

Patterns / reminders

Sources