Recent questions tagged tree-traversal

1 votes
3 answers
31
_____ traversals are not sufficient to build a binary tree.Preorder and InorderPostorder and InorderPostorder and PreorderNone of these
0 votes
0 answers
32
2 votes
2 answers
33
How to Construct Full Binary Tree from given preorder and postorder?Thank you.
2 votes
1 answer
35
Preorder is same as :a) depth-first order b) breadth-first searchc) topological order d) linear order
2 votes
4 answers
36
If $\text{Tree-1}$ and $\text{Tree-2}$ are the trees indicated below:Which traversals of $\text{Tree-1}$ and $\text{Tree-2}$, respectively, will produce the same sequence...
1 votes
0 answers
37
WHAT IS THE POST ORDER IF ROOT NODE IS P?
8 votes
1 answer
38
Q.Consider a four labeled 1, 2, 3, 4. The number of distinct binary tree are possible such that whose inorder traversal is 1, 2, 3, 4 are _________Answer must be 14 right...
1 votes
2 answers
39
assume the preorder tŕaversal of binary tree is "abc" how many total different binary trees are possible whose postorder traversal.is "cba" with the given preorder trave...
2 votes
3 answers
41
For a binary tree T,preorder traversal yields: 11,8,6,4,7,10,19,43,31,29,37,49 andinorder traversal yields: 4,6,7,8,10,11,19,29,31,37,43,49The height of the T is _____...
0 votes
0 answers
43
1. What is the time complexity to design BST from given postorder and inorder traversal?2. What is the time complexity to design BST from given postorder only. I know tim...
8 votes
3 answers
44
If the post order traversal gives ab -cd * + then the label of the nodes 1,2,3.. will be+ , -, *, a,b,c,da, -,b,+,c,*,da,b,c,d,-,*,+-,a,b,+,*,c,d
0 votes
1 answer
46
why do we need preorder, postorder and inorder sequence/graph traversal?
0 votes
3 answers
47
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
0 votes
0 answers
48
WHY CROSS EDGES TURN TO BE BACK EDGES IN UNDIRECTED GRAPH IN DFS TRAVERSAL?? CAN ANYONE EXPLAIN THIS. WHY ARE THERE NO CROSS EDGES IN DFS OF UNDIRECTED GRAPH??
0 votes
1 answer
49
preorder traversal of a tree resemble to the DFS traversal of graph?
2 votes
1 answer
52
1 votes
1 answer
53
The inorder traversal of the following tree is$2 \, \, \, 3 \, \, \, 4 \, \, \, 6 \, \, \, 7 \, \, \, 13 \, \, \, 15 \, \, \, 17 \, \, \, 18 \, \, \, 18 \, \, \, 20$$20 \...
2 votes
1 answer
54
3 votes
4 answers
57
The in-order traversal of a tree resulted in FBGADCE. Then the pre-order traversal of that tree would result inFGBDECAABFGCDEBFGCDEAAFGBDEC