What is a Node?
What is an Edge?
The link/connection between nodes
What is unique about the root node?
It has no parent
What are leaf nodes?
Nodes that have no child
What is a Path?
A sequence of nodes connected by edges
How is the length of a path determined?
Determined by the number of nodes in the path (including start and end nodes)
What is a Parent node?
The unique predecessor of every node
What is a Child node?
The successor to a parent node
What are Sibling nodes?
Nodes that have a common parent
What is the Level of a node?
What is the height of a tree?
The height is determined by the highest level node
What are Sub-trees?
What is the difference between a Strictly Binary Tree and a Knuth Binary tree?
What 3 qualities make Trees a recursive data structure?
What makes a tree balanced?
All leaf nodes have the same level
What is a Breadth-first traversal?
Returns the data of each node level by level
(e.g. returns all nodes at level 1, then level 2, etc.)
What is the procedure for a Depth first Pre-order traversal?
-Process, Left, Right or P, L, R
What is the procedure for a Depth first In-order traversal?
What is the procedure for a Depth first Post-order traversal?
What is a Binary Search Tree (BST)?
How is a BST organised?
-The values in the right sub-tree are always greater than the parent
What is the worst-case and best-case time complexity of searching a BST?
What type of traversal is needed to return an ordered list of items from a BST?
Depth first in-order traversal
What is a Full Binary tree?
A binary tree where every level of the tree has the maximum possible number of nodes