Binary Search
Level 2
Coming soon
This lesson is being written. Explore the graph meanwhile.
You will need
Unlocks
- Balanced Binary TreeA balanced binary tree rearranges itself after each change so that no node's two subtrees differ much in height, which keeps lookups near log n even when keys arrive in the worst order.
- Binary TreeA binary tree gives each node at most two children; a binary search tree orders them so a lookup walks one path down, costing about log n steps when the tree stays balanced.
- Database IndexA database index is a separate sorted structure that maps column values to the rows holding them, so a query can jump to matching rows instead of reading the whole table.
- SSTableComing soon
- Suffix ArrayComing soon