Advanced Data Structures
Specialised structures for fast queries: caches, segment trees, Fenwick trees, Bloom filters and B-trees.
Advanced Data Structures
Specialised structures for fast queries: caches, segment trees, Fenwick trees, Bloom filters and B-trees.
- LRU and LFU caches An LRU cache evicts the least recently used item. A hash map plus a doubly linked list gives O(1) get and put. LFU evicts the least…