Binary Search Tree Operations

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

1/12

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.

13 Terms

1
New cards

Binary Search Tree (BST)

A type of binary tree that maintains a specific ordering property where the left child has a value less than the parent node and the right child has a value greater.

2
New cards

Searching in BST

The process of comparing a target value with the values in nodes and traversing the tree to locate the target.

3
New cards

Insertion in BST

The operation of adding a new node to a binary search tree by finding the appropriate position based on the node's value.

4
New cards

Deletion in BST

The operation of removing a node from a binary search tree, which can involve three cases: leaf nodes, nodes with one child, and nodes with two children.

5
New cards

AVL Trees

Self-balancing binary search trees that maintain balance by ensuring the heights of left and right subtrees differ by at most one.

6
New cards

Tree Balancing and Self-Balancing Binary Search Trees

In certain scenarios, binary search trees can become unbalanced, leading to inefficient search and traversal operations. Tree balancing techniques aim to maintain a balanced structure in binary search trees to ensure optimal performance

7
New cards

Red-Black Trees

Self-balancing binary search trees that use color properties (red or black) to keep the tree approximately balanced.

8
New cards

Null child

A child pointer in a binary search tree that does not point to any node, indicating an empty position for insertion.

9
New cards

Range queries in BST

Operations that retrieve all values within a specified range by using in-order traversal.

10
New cards

Efficient searching

The ability of a binary search tree to quickly locate values in a sorted set of data.

11
New cards

Database indexing

The technique of organizing data efficiently in a database using binary search trees for faster search operations.

12
New cards

Auto-complete functionality

A feature that allows users to find and suggest words or phrases using binary search trees.

13
New cards

Implementing associative arrays

Binary search trees can be used to implement key-value storage structures.