Balanced Search Trees

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts of balanced search trees, including 2–3 trees, red-black BSTs, and B-trees, along with their properties and functionalities.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

What is a characteristic of a 2–3 tree?

A 2–3 tree allows 1 or 2 keys per node, maintaining perfect balance.

2
New cards

What happens during the insertion of a new key into a 3-node in a 2–3 tree?

A new key is added, creating a temporary 4-node, which may require splitting.

3
New cards

What is the maximum height of a 2–3 tree with n keys?

Approximately log3 n.

4
New cards

What is the main purpose of a B-tree?

B-trees support external searches in symbol tables that can contain trillions of items.

5
New cards

How does a left-leaning red–black BST represent a 3-node?

By using 'internal' left-leaning links as 'glue' for nodes.

6
New cards

What do red-black trees ensure about the paths from root to null links?

Every path from root to null link has the same number of black links.

7
New cards

What is the result of splitting a 4-node in a red-black BST?

It leads to a transformation that maintains symmetric order and black balance.

8
New cards

What is the average case performance of a 2-3 tree for search, insert, and delete operations?

Logarithmic performance, i.e., O(log n).

9
New cards

How many key-link pairs are allowed per node in a B-tree of order m?

Up to M - 1 key-link pairs per node.

10
New cards

What is the proposed advantage of using B-trees for large data sets?

B-trees allow for efficient search and insertion operations using minimal memory references.