A B-tree is a self-balancing tree data structure that maintains sorted data and allows searches, sequential access, insertions, and deletions in logarithmic time. B-trees are optimized for systems that read and write large blocks of data, making them perfect for databases and file systems.
Select an operation and enter a value to see the explanation here.
Operation | Average Case | Worst Case |
---|---|---|
Search | O(log n) | O(log n) |
Insert | O(log n) | O(log n) |
Delete | O(log n) | O(log n) |