Data Structures: Tree Fundamentals and Binary 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/31

flashcard set

Earn XP

Description and Tags

This set of vocabulary flashcards covers fundamental tree concepts, terminalogy, binary tree variations (strictly, complete, extended), traversals, and specialized structures like BST, B-trees, B+ trees, and AVL trees based on the lecture notes.

Last updated 5:01 AM on 5/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards

Tree

A non-linear data structure in which items are arranged in a sorted sequence to represent hierarchical relationships existing amongst several data items.

2
New cards

Root

The specially designed first data item in the hierarchical arrangement of a tree. In a tree, every node except this one has exactly one parent.

3
New cards

Node

The basic structure in a tree that specifies the data information and links (branches) to other data items.

4
New cards

Degree of a node

The number of subtrees belonging to a specific node in a given tree.

5
New cards

Degree of a tree

The maximum degree of any node within a given tree.

6
New cards

Terminal node(s)

Also called a leaf, this is a node with a degree of zero.

7
New cards

Non-terminal node(s)

Any node, except the root node, whose degree is not zero; these serve as intermediate nodes when traversing from the root to the leaves.

8
New cards

Siblings

The children nodes of a given parent node, also referred to as brothers.

9
New cards

Level

A measurement of tree hierarchy where the root is at level 00, and if a node is at level nn, its children are at level n+1n + 1.

10
New cards

Edge

A connecting line drawn from one node to another node in a tree.

11
New cards

Path

A sequence of consecutive edges from a source node to a destination node.

12
New cards

Depth

Also known as height, it is the maximum level of any node in a given tree.

13
New cards

Forest

A set of disjoint trees; removing the root node from a tree results in this structure.

14
New cards

Binary tree

A finite set of elements partitioned into three distinct sub-sets: the root, the left sub-tree, and the right sub-tree.

15
New cards

Ancestor

A node A is considered this for node B if A is either the father of B or the father of some other ancestor of B.

16
New cards

Climbing

The operation of traversing a tree from a leaf node up to the root node.

17
New cards

Descending

The operation of traversing a tree from the root node down to the leaves.

18
New cards

Strictly binary tree

A binary tree in which every non-leaf node has non-empty left and right sub-trees.

19
New cards

Complete binary tree

A strictly binary tree in which all leaf nodes are located at the same level.

20
New cards

Extended Binary tree

Also known as a 2-tree, it is formed by adding nodes to a binary tree such that every node in the resultant structure has either 00 or 22 children.

21
New cards

Internal nodes

The nodes of the original tree when it is converted into an extended binary tree.

22
New cards

External nodes

The new nodes added to a binary tree to make it an extended binary tree.

23
New cards

Pre-order Traversal

A traversal method using the sequence: (1) Visit the root R, (2) Traverse the left sub-tree in pre-order, (3) Traverse the right sub-tree in pre-order.

24
New cards

In-order Traversal

A traversal method using the sequence: (1) Traverse the left sub-tree in in-order, (2) Visit the root R, (3) Traverse the right sub-tree in in-order.

25
New cards

Post-order Traversal

A traversal method using the sequence: (1) Traverse the left sub-tree in post-order, (2) Traverse the right sub-tree in post-order, (3) Visit the root R.

26
New cards

Binary search tree

A binary tree where all elements in the left sub-tree of a node are less than the node's contents, and all elements in the right sub-tree are greater than or equal to it.

27
New cards

B-tree

A balanced N-way search tree where all leaf nodes appear on the same level and non-leaf nodes (except root) have at least n/2n/2 children; used in external sorting.

28
New cards

B+ tree

A variation of the B-tree used for indexed sequential organization where all leaves are connected to form a linked list of keys in sequential order.

29
New cards

AVL tree

A balanced binary search tree invented in 1962 by Adelson-Velskii and Landis where the difference between left and right sub-tree heights is at most one.

30
New cards

Balance factor

In an AVL tree node, this is calculated by subtracting the height of the right sub-tree from the height of the left sub-tree.

31
New cards

Threaded Binary Tree

A tree structure where NULL pointers are replaced with pointers to in-order predecessors or successors to facilitate traversal without using a stack.

32
New cards

Right threads

Pointers in a threaded binary tree that point to the in-order successor of a node, replacing normal NULL right pointers.