• recategorized by
721 views

1 Answer

0 0 votes

The identifiers and their probablities are assumed to be their weights. Thus forming new BST will take 

O(nlogn) time. Hence option C is correct

Position:
Show:

Related questions

0 0 votes
0 0 answers
2.0k
2.0k views
`JEET asked Jan 19, 2019
1,970 views
Consider the following instance of OBST (Optimal Binary search Tree) problem.N = 4; <$a_1$, $a_2$, $a_3$, $a_4$ = <do, if, int, while>P(1...4) = <3,3,1,1>; Q(0...4) = <2,...
0 0 votes
1 1 answer
1.4k
1.4k views
talha hashim asked Aug 17, 2018
1,377 views
Consider the problem of construction of minimum cost binary search tree for a given set of 'n' identifiers with their respective probabilities.The time complexity of the ...
1 1 vote
2 answers 2 answers
372
372 views
Prem Sai Kodi asked Jan 25
372 views
Suppose 5 distinct keys are inserted into an empty Binary Search Tree (BST) in random order. What is the probability that the resulting BST is completely skewed (i.e., ev...
1 1 vote
1 1 answer
421
421 views