edited by
7,234 views
2 votes
2 votes
Preorder is same as :

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

c) topological order           d) linear order
edited by

1 Answer

Best answer
1 votes
1 votes
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

Related questions

1 votes
1 votes
0 answers
3
iarnav asked Jan 6, 2018
636 views
WHAT IS THE POST ORDER IF ROOT NODE IS P?
0 votes
0 votes
3 answers
4
smartmeet asked Feb 8, 2017
6,988 views
If a node in a BST has two children, then its in-order predecessor hasa) No left childb) No right childc) 2 childrend) no child