Back to marketplace

Section 7 Chapter 42 - Trees

No description yet. This curated deck is ready for daily study.

Total cards: 15•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (15)

#1
Front (Question)

Tree

Back (Answer)

Connected, undirected graph with no cycles

#2
Front (Question)

Rooted tree

Back (Answer)

A tree where one vertex has been designated as the root

#3
Front (Question)

Node

Back (Answer)

Contains the data and are connected together via edges

#4
Front (Question)

Edge

Back (Answer)

Connects two nodes

#5
Front (Question)

Root

Back (Answer)

The only node with no parent. All other nodes are descendants of the root

#6
Front (Question)

Child

Back (Answer)

node A is a child of node B is they have a direct connection and node B is closer to the root than node A.

#7
Front (Question)

Parent

Back (Answer)

Node A is a parent of node B if they are directly connected and node A is closer to the root

#8
Front (Question)

Subtree

Back (Answer)

The set of nodes and edges comprised of a parent and its descendants

#9
Front (Question)

Leaf

Back (Answer)

A node that has no children

#10
Front (Question)

Binary tree

Back (Answer)

A rooted tree where each node has at most two children

#11
Front (Question)

Binary search tree

Back (Answer)

A binary tree that holds the items in such a way that a binary search can be conducted on the tree very easily

#12
Front (Question)

How to construct a binary search tree

Back (Answer)

The first item is placed at the root. When a new item is added visit the root, which becomes the current node. At each current node, if the item is less than the value of the node take the branch to the left, otherwise take the branch to the right. Repeat until you attempt to take a branch that does not exist. Add the item as a node in this place

#13
Front (Question)

The ways to traverse a binary tree (3)

Back (Answer)

Pre-order In-order Post-order

#14
Front (Question)

How to know what each traversal means

Back (Answer)

The prefix of each traversals refers to how whether, at each subtree, you consider the parent node first, second or third.

#15
Front (Question)

Uses for each traversal

Back (Answer)

Pre-order - producing prefix notation In-order - binary search Post-order - produce reverse polish notation