Binary Search Trees and Their Operations

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

Binary Search Tree (BST)

1 / 13

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

14 Terms

1

Binary Search Tree (BST)

A binary tree optimized for searching items.

New cards
2

Node Properties

Node's value is bounded by its subtrees.

New cards
3

Record

Group of related fields, not same type.

New cards
4

Field

Data element within a record.

New cards
5

Search Key

Identifies a record within a collection.

New cards
6

KeyedItem Class

Contains search key and access method.

New cards
7

Traversal Types

Preorder, inorder, postorder for BST.

New cards
8

Deletion Cases

Leaf, one child, or two children scenarios.

New cards
9

BinarySearchTree Class

Extends BinaryTreeBasis with additional features.

New cards
10

Efficiency of Operations

Height determines max comparisons for operations.

New cards
11

Minimum Height Theorem

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

New cards
12

Treesort Efficiency

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

New cards
13

General Tree

An n-ary tree with n children per node.

New cards
14

Shape Efficiency

Tree shape affects operation efficiency.

New cards

Explore top notes

note Note
studied byStudied by 51 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 14 people
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 59 people
... ago
5.0(3)
note Note
studied byStudied by 7 people
... ago
4.0(1)
note Note
studied byStudied by 123508 people
... ago
4.8(561)

Explore top flashcards

flashcards Flashcard (85)
studied byStudied by 4 people
... ago
5.0(2)
flashcards Flashcard (37)
studied byStudied by 17 people
... ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 11 people
... ago
5.0(1)
flashcards Flashcard (56)
studied byStudied by 548 people
... ago
4.8(5)
flashcards Flashcard (169)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (24)
studied byStudied by 4 people
... ago
5.0(2)
flashcards Flashcard (118)
studied byStudied by 52 people
... ago
5.0(1)
flashcards Flashcard (21)
studied byStudied by 2 people
... ago
5.0(1)
robot