2080 12

BIT152 ยท 2080 ยท 5 marks

Define tree traversal. Explain pre-order traversal with example.

Define tree traversal. Explain pre-order traversal with example. [5]

Discrete StructureChapter 9: Trees and Graph AlgorithmsPre-order traversal

Tree traversal is the process of visiting each node in a tree data structure exactly once in a systematic and well-defined order. It is used to process, search, or display all the nodes of a tree. Unlike linear data structures (arrays, linked lists), trees can be traversed in multiple ways. --- I...