View on GitHub

reading-notes

Observations and questions from reading assignments.

Working with Trees

Home

Trees1

There are two categories of traverals when it comes to trees:

Depth First

Where wer prioritize going through the depth (height) of the tree first. There are multiple ways to carry out depth first traversal, and each method changes the other in which we search/print the root. Depth first methods

Trees2

Trees3

Trees4

Trees5

Breadth first

Iterates through the tree by going through each level of the tree node-by-node.

Trees2

#### Output: A, B, C, D, E, F

Trees6

## Source CodeFellow Resources