1.

What Is Tree Traversal?

Answer»

TREE TRAVERSAL is a process to VISIT all the NODES of a tree. Because, all nodes are connected via EDGES (links) we always start from the root (head) node.

There are three ways which we use to traverse a tree:

  1. In-order Traversal
  2. Pre-order Traversal
  3. Post-order Traversal

Tree traversal is a process to visit all the nodes of a tree. Because, all nodes are connected via edges (links) we always start from the root (head) node.

There are three ways which we use to traverse a tree:



Discussion

No Comment Found