Data Structures: Trees and Binary Trees

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/27

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary terms and definitions related to trees and binary trees in data structures.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

28 Terms

1
New cards

Tree

A collection of data items related to each other according to a specific hierarchical structure.

2
New cards

Node

Each item in the tree.

3
New cards

Root Node

The node at the top of the tree.

4
New cards

Edges

Lines or paths connecting nodes.

5
New cards

Leaf Node

A node that has a degree of 0.

6
New cards

Internal Nodes

Nodes that have a degree greater than 0.

7
New cards

Subtree

A tree within a tree.

8
New cards

Sibling

Nodes with the same parent node.

9
New cards

Grandparent

The parent of a parent node.

10
New cards

Ancestors

Parent nodes, grandparent nodes, and so on.

11
New cards

Levels

Position of a node relative to the root.

12
New cards

Degree of a Node

The number of subtrees of a node.

13
New cards

Degree of a Tree

The degree of the node with the highest degree.

14
New cards

Depth of the Node

The number of edges from the root to the node.

15
New cards

Depth of the Tree

The number of edges from the root to the deepest leaf node.

16
New cards

Height of the Node

The number of edges from the node to its deepest leaf node.

17
New cards

Height of the Tree

The height of the root node.

18
New cards

Binary Tree

A tree in which every node can have at most two children.

19
New cards

Binary Search Tree

An ordered binary tree where all elements in the left subtree are less than the root and all in the right subtree are greater.

20
New cards

Binary Expression Tree

A binary tree used to represent arithmetic expressions with operators and operands.

21
New cards

Pre-order Traversal

Tree traversal method used to get prefix expression and create a copy of the tree.

22
New cards

In-order Traversal

Tree traversal method used to get infix expression of an expression tree.

23
New cards

Post-order Traversal

Tree traversal method used to get postfix expression and delete the tree.

24
New cards

Leaf Node Deletion

Simply remove/disconnect the leaf node to be deleted from the tree.

25
New cards

In-order Successor

The least value element in the right subtree of the deleting node.

26
New cards

In-order Predecessor

The greatest value element in the left subtree of the deleting node.

27
New cards

Balanced Tree

A binary search tree with equal items on each subtree to minimize the maximum path to any leaf.

28
New cards

Height-Balanced

A binary search tree where the left and right subtree heights of each node are within 1.