October 2025
Intermediate to advanced
485 pages
13h 2m
English
Before revealing this exciting new data structure, let’s first talk about binary search trees (BSTs) and how they might work with external memory. All of our discussions about BSTs until this point assumed that the entire tree would fit into RAM. But what would it look like if the BST was too large for RAM? This could happen if our BST was absolutely huge or if our computer had a tiny main memory, or both.
Say, for example, that we have a microcomputer that has a main memory that could only hold up to 4 nodes of a BST. Let’s also say that the block size was 4 nodes as well. How could our computer perform a search on the following BST, which contains 50 values?
Well, first, this BST would need to be stored ...
Read now
Unlock full access