Binary Search Trees and Their Operations

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

1/13

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.

14 Terms

1
New cards

Binary Search Tree (BST)

A binary tree optimized for searching items.

2
New cards

Node Properties

Node's value is bounded by its subtrees.

3
New cards

Record

Group of related fields, not same type.

4
New cards

Field

Data element within a record.

5
New cards

Search Key

Identifies a record within a collection.

6
New cards

KeyedItem Class

Contains search key and access method.

7
New cards

Traversal Types

Preorder, inorder, postorder for BST.

8
New cards

Deletion Cases

Leaf, one child, or two children scenarios.

9
New cards

BinarySearchTree Class

Extends BinaryTreeBasis with additional features.

10
New cards

Efficiency of Operations

Height determines max comparisons for operations.

11
New cards

Minimum Height Theorem

Minimum height is ⌈log2(n+1)⌉.

12
New cards

Treesort Efficiency

Average: O(n * log n), Worst: O(n²).

13
New cards

General Tree

An n-ary tree with n children per node.

14
New cards

Shape Efficiency

Tree shape affects operation efficiency.