Recent questions tagged binary-search-tree

3 votes
3 answers
121
What is the asymptotic performance of TREE-INSERT when used to insert nitems with identical keys into an initially empty binary search tree?
2 votes
2 answers
122
How to Construct Full Binary Tree from given preorder and postorder?Thank you.
3 votes
1 answer
123
Let T be a binary search tree with n nodes and Sn be the average number of comparisons required for successful search and Un be the average number of comparison required ...
0 votes
1 answer
127
Can a binary tree or BST can be constructed with dynamic programming? Can it be constructed through greedy method?Plz give some algorithm and explain
1 votes
2 answers
129
1 votes
1 answer
131
give an o(n) algorithm to check whether the given binary tree is bst or not
1 votes
4 answers
133
Given a preorder, postorder and inorder traversal of a tree, is it always possible to obtain a tree that satisfies each of the three conditions? Or is it possible to not ...
1 votes
1 answer
137
In deleting the root element of a BST, we have to replace root with _________a)Inorder successorb)Inorder predecessorc)Both a and b
5 votes
1 answer
138
A balanced binary search tree of n nodes,the number of steps needed to find and remove the 9th largest element in the worst case?(Please mention the algorithm followed)
4 votes
0 answers
139
When node 50 will be deleted, what will be resultant AVL tree?
1 votes
0 answers
140
Find number of BST's possible with 6 nodes numbered 1,2,3,4,5 and 6 having 6 as root and height of 4 ?please explain in detail ...
1 votes
1 answer
141
Consider a binary tree T that has 100 leaf nodes. Then the number of INTERNAL nodes in T that have exactly two children are ______.
1 votes
1 answer
142
To insert key into level L B/B+ tree maximum new nodes require to create?? And how?
0 votes
1 answer
147
Given an initially empty Binary search tree how many different order of insertion order A,B,C,D,E,F,G that returns minimum height tree?
1 votes
1 answer
149
The number of ways we can insert 11, 12, 13, 14, 15, 16, 17 in empty binary search tree such that resulting tree has the height of 6 = ___________ [height of a tree with ...
4 votes
4 answers
150
How many different binary search trees can be constructed using six distinct keys? 256 128 132 264