ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
BlockBTree.h

The B-tree of chapter 14 of Morin's book, beyond the book, on a BlockStore. More...

Files

file  ADS/external/BlockBTree.h
 The B-tree of chapter 14 of Morin's book, beyond the book, on a BlockStore [see BlockStore.h]: a SORTED SET whose nodes are blocks of the external memory, each read and written by one I/O, and whose lowerBound( x ) (the smallest key \( \ge x \), the find( x ) of the SSet of the book), insert() and remove() take \( O( \log_B n ) \) I/Os, \( O( B \log_B n ) \) time with a binary search in each node.

Classes

class  ADS::BlockBTree< K >
 a B-tree of keys whose nodes are the blocks of a BlockStore More...

Enumerations

enum class  ADS::BTreePolicy { ADS::BTreePolicy::STANDARD , ADS::BTreePolicy::WIDE , ADS::BTreePolicy::THREE }
 how a BlockBTree keeps its nodes within their bounds More...

Detailed description

The B-tree of chapter 14 of Morin's book, beyond the book, on a BlockStore.

The definitions, the invariants and the costs of the area are in Theory of external memory.

Enumeration type documentation

◆ BTreePolicy

enum class ADS::BTreePolicy
strong

how a BlockBTree keeps its nodes within their bounds

Enumerator
STANDARD 

\( B - 1 \) to \( 2 B - 1 \) keys, the book's rules

WIDE 

\( B - 1 \) to \( 3 B - 1 \) keys (exercise 14.6)

THREE 

the book's bounds but in a tree of two leaves, by three

nodes (exercise 14.7)