Binary Search Trees

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

flashcard set

Earn XP

Description and Tags

These flashcards cover essential vocabulary and concepts related to binary search trees (BSTs), their structure, operations, and properties.

Last updated 7:10 PM on 11/22/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

19 Terms

1
New cards

Binary Search Tree (BST)

A binary tree where each node's left subtree contains keys less than the node's key and the right subtree contains keys greater than the node's key.

2
New cards

Node

An element that stores information in a binary tree, consisting of a key value and potentially other data.

3
New cards

Left Subtree

The subtree that contains nodes with keys less than the parent node's key.

4
New cards

Right Subtree

The subtree that contains nodes with keys greater than the parent node's key.

5
New cards

Inorder Traversal

A method of tree traversal that visits the left subtree, the current node, and then the right subtree, displaying nodes in ascending order.

6
New cards

Preorder Traversal

A method of tree traversal that visits the current node first, followed by the left subtree and then the right subtree.

7
New cards

Postorder Traversal

A method of tree traversal that visits the left subtree first, then the right subtree, and finally the current node.

8
New cards

Height of Tree

The longest path from the root node to a leaf node.

9
New cards

Efficient Operations

Key operations that can be performed efficiently in a BST including insertion, searching, deletion, and sorted printing.

10
New cards

Duplicate Keys

In the context of a BST, keys which are allowed to be equal; in this case, duplicates can either go into the left or right subtree depending on the implementation.

11
New cards

TreeNode

A class that represents a node in a binary tree, containing an element and references to left and right child nodes.

12
New cards

Binary Tree Representation

Utilizes a structure of linked nodes where each node has a value and pointers to its left and right children.

13
New cards

Delete Operation

A process to remove a specified element from a BST, which involves finding the node and its parent, and then adjusting the tree structure accordingly.

14
New cards

Searching an Element

The process of locating a node with a specific key value in the BST, beginning from the root and moving to left or right children based on comparison.

15
New cards

AbstractTree Class

A class that partially implements the Tree interface for common operations in tree structures.

16
New cards

Tree Interface

Defines common operations for trees, such as searching, inserting, deleting, and traversing.

17
New cards

Time Complexity

The amount of time taken to perform operations based on the size of the input, represented in terms of Big O notation, e.g., O(n) for traversals.

18
New cards

Rightmost Node

The node that contains the largest key in the left subtree of a targeted node, crucial in the deletion operation.

19
New cards

Binary Tree Traversal

The method of visiting all nodes in a tree data structure exactly once for processing or displaying their values.