Discrete Structure20805 marksPre-order traversal
Define tree traversal. Explain pre-order traversal with example.
Define tree traversal. Explain pre-order traversal with example. [5]
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...