in DS edited by
7,137 views
2 votes
2 votes
Preorder is same as :

a) depth-first order            b) breadth-first search

c) topological order           d) linear order
in DS edited by
7.1k views

4 Comments

Take any tree perform Preorder and all DFS order , you will find one of the DFS order is Preorder of tree,
1
1
okay! thanks
0
0
Depth First Order left to right.
0
0

1 Answer

1 vote
1 vote
Best answer
All These Three Tree Traversals: Preorder, Inorder and Postorder Traversals are Depth-First Traversals with the added condition that In All of them, in the Depth first Traversal, Left Node is processed before Right Node (only the Root oscillates i.e.  Only the Printing of Root node differs i.e. When do we print the Root node, differs)

Specifically, Preorder is Depth First Order Left to Right.
selected by