Concept

What are the three ways to traverse a binary tree?

Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk / Chapter 1

"There were two ways of traversing a graph: breadth-first, and depth-first. Curiously, there are three ways of traversing a tree: pre-order , post-order , and in-order . All three begin at the root, and all three consider each of the root’s children as subtrees. The difference is in the order of visitation. To traverse a tree pre-order , we: 1. Visit the root."

Related Ideas

What are the three ways to traverse a binary tree? | Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk | Bifalgorithm | Bifalgorithm