Binary tree

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

1/15

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards
Binary Tree
A tree data structure in which each node has at most two children.
2
New cards
Root
The top node of a tree from which all nodes descend.
3
New cards
Complete Binary Tree
A binary tree where every level, except possibly the last, is completely filled and all nodes are as far left as possible.
4
New cards
Perfect Binary Tree
A binary tree where all internal nodes have two children and all leaves are at the same depth.
5
New cards
Height of a tree
The longest path from the root to a leaf, counted by the number of edges.
6
New cards
Min number of leaves
Occurs in a degenerate tree where each node has only one child.
7
New cards
In-order Traversal
A tree traversal method where the left subtree is visited first, followed by the root node, then the right subtree.
8
New cards
Pre-order Traversal
A tree traversal method where the root node is visited first, followed by the left subtree and then the right subtree.
9
New cards
Post-order Traversal
A tree traversal method where the left and right subtrees are visited first, followed by the root node.
10
New cards
Binary Search Tree (BST)
A type of binary tree where the left sub-tree has nodes with values less than the root, and the right sub-tree has nodes with values greater than or equal to the root.
11
New cards
Finding Minimum in BST
The process of locating the node with the smallest value in a binary search tree.
12
New cards
Finding Maximum in BST
The process of locating the node with the largest value in a binary search tree.
13
New cards
Delete Node with One Child
The action of removing a node which is replaced by its only child.
14
New cards
Delete Node with Two Children
The action of removing a node which requires replacing it with either its inorder predecessor or successor.
15
New cards
Adjacency List
A way of representing a graph where each node has a list of its adjacent nodes.
16
New cards
Traversal Order
The sequence in which the nodes of a tree are visited during traversal.