TREE TERMINOLOGY

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 31

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

32 Terms

1

Node

The fundamental part of a tree that contains data and may have links to other nodes.

New cards
2

Root

The topmost node of a tree. It has no parent.

New cards
3

Leaf

A node with no children; it is at the end of a branch.

New cards
4

Edge

The link between two nodes.

New cards
5

Parent

A node that has one or more child nodes.

New cards
6

Child

A node that is a descendant of another node (its parent).

New cards
7

Subtree

A tree formed by a node and its descendants.

New cards
8

Binary Tree

A tree in which each node has at most two children (left and right).

New cards
9

Binary Search Tree (BST)

A binary tree where each node��s left children are less than the node, and each node’s right children are greater.

New cards
10

Balanced Tree

A binary tree where the height difference between the left and right subtrees of any node is minimal.

New cards
11

Complete Binary Tree

A binary tree in which all levels are fully filled except possibly the last, and all nodes are as far left as possible.

New cards
12

Full Binary Tree

A binary tree in which every node has either 0 or 2 children.

New cards
13

Perfect Binary Tree

A binary tree where all internal nodes have exactly two children and all leaf nodes are at the same level.

New cards
14

AVL Tree

A self-balancing binary search tree where the difference between heights of left and right subtrees cannot be more than one.

New cards
15

Red-Black Tree

A balanced binary search tree with additional properties to ensure balance.

New cards
16

Height

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

New cards
17

Depth

The length of the path from the root to a specific node.

New cards
18

Level

The level of a node is the number of edges from the root to the node. The root is at level 0.

New cards
19

Degree

The number of children a node has.

New cards
20

Pre-order Traversal

Visit the root node, then recursively visit the left subtree, followed by the right subtree.

New cards
21

In-order Traversal

Recursively visit the left subtree, visit the root node, then recursively visit the right subtree.

New cards
22

Post-order Traversal

Recursively visit the left subtree, the right subtree, and then visit the root node.

New cards
23

Level-order Traversal

Visit nodes level by level from the root to the leaves.

New cards
24

Trie

A tree-like data structure used to store a dynamic set of strings, where nodes represent prefixes of the strings.

New cards
25

B-Tree

A self-balancing tree data structure that maintains sorted data and allows searches, sequential access, insertions, and deletions in logarithmic time.

New cards
26

Segment Tree

A binary tree used for storing intervals or segments, allowing querying of segment overlaps efficiently.

New cards
27

In-order Successor

The node that comes immediately after a given node in in-order traversal.

New cards
28

In-order Predecessor

The node that comes immediately before a given node in in-order traversal.

New cards
29

Sibling

Nodes that share the same parent.

New cards
30

Ancestor

A node’s parent, grandparent, and so on up to the root.

New cards
31

Descendant

A node’s children, grandchildren, and so on down to the leaves.

New cards
32

Path

A sequence of nodes and edges connecting a node with a descendant.

New cards
robot