Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu B+ tree, order, fill factor, node split, bulk loading?

Dikenal juga sebagai: B+ tree · order (of a B+ tree) · fill factor · node split · bulk loading

Definition 21.3 University Computer Science — Year 3 · Bab 21 — Database Storage and Indexes

A B+ tree of order m≥3m \ge 3 is a search tree whose nodes are pages. An internal node holds kk sorted keys and k+1k + 1 children, at most mm children; the subtree left of key KK holds keys less than KK, the subtree right of it keys at least KK. The leaves hold the (key, value) pairs, at most m−1m - 1 of them, all at the same depth and chained left to right. Every node except the root has at least ⌈m/2⌉\lceil m/2 \rceil children (internal) or ⌈(m−1)/2⌉\lceil (m - 1)/2 \rceil pairs (leaf). The fill factor is the fraction of a node’s capacity in use. A node split divides an overfull node into two and adds a separating key to the parent. Bulk loading builds a tree from sorted pairs bottom up, filling leaves in order and then each level above, without a split.

The order-4 tree of  after inserting 5, 15, 25, 35, 45, 20, 30, 10, 40, 50. Every key of an internal node is also in a leaf, the first of the leaf to its right; the leaf chain carries range scans.
The order-4 tree of Output 21.4 after inserting 5, 15, 25, 35, 45, 20, 30, 10, 40, 50. Every key of an internal node is also in a leaf, the first of the leaf to its right; the leaf chain carries range scans.
Baca dalam konteks →