B-Tree

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

B-tree

Search-friendly multi-way balanced tree; keeps leaves at same depth.

2
New cards

MINIMUM (m)

Smallest #keys in any non-root node; design parameter of the tree. :contentReference[oaicite:9]{index=9}

3
New cards

MAXIMUM

2 × MINIMUM; largest #keys a node can hold. :contentReference[oaicite:10]{index=10}

4
New cards

Rule 1

Root may have 1 key; other nodes ≥ m keys. :contentReference[oaicite:11]{index=11}

5
New cards

Rule 2

Node ≤ 2 m keys. :contentReference[oaicite:12]{index=12}

6
New cards

Rule 4

Non-leaf with k keys has k + 1 children. :contentReference[oaicite:13]{index=13}

7
New cards

Rule 5 (ordering)

Key i separates child i (

8
New cards

Rule 6

All leaves at the same depth (balanced). :contentReference[oaicite:15]{index=15}

9
New cards

Loose insertion

Temporarily allow node to hold MAX + 1 keys. :contentReference[oaicite:16]{index=16}

10
New cards

Split operation

Divide overflow node into left m, median, right m keys; push median up.

11
New cards

Loose removal

Temporarily allow node to drop to m – 1 keys. :contentReference[oaicite:17]{index=17}

12
New cards

Borrow (deletion)

Move one key from rich sibling through parent to the poor node.

13
New cards

Merge (deletion)

Fuse poor node with sibling and pull down parent separator key.

14
New cards

Search cost

O(log₍m₎ N) because tree height is logarithmic in fan-out.

15
New cards

Overflow

Node with 2 m + 1 keys – triggers split.

16
New cards

Underflow

Node with m – 1 keys – triggers borrow/merge.

17
New cards

In-order predecessor

Largest key in left subtree; used to delete internal key.

18
New cards

Height of B-tree

≤ ⌈log_{m+1}(N)⌉.

19
New cards

Fan-out

Number of children of a node; up to 2 m + 1.

20
New cards

Real-world use

Databases & filesystems (minimizes disk seeks).

21
New cards