recategorized by
485 views
2 votes
2 votes

Consider the problem of construction of a minimum cost binary search tree for a given set of ‘$n$’ identifiers with their respective probabilities. The time complexity of the most efficient algorithm of the same is

  1. $O(n^2)$
  2. $O(n^3)$
  3. $O(n\log n)$
  4. $O(n^3\log n)$
recategorized by

1 Answer

0 votes
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

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
2
`JEET asked Jan 19, 2019
1,049 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,...
1 votes
1 votes
1 answer
3
talha hashim asked Aug 17, 2018
621 views
Consider the following instance of OBST (Optimal Binary Search Tree) Problem.n=4;<a1,a2,a3,a4>=<do,if,int,while>P(1....4)=<3,3,1,1>; Q(0....4)=<2,3,1,1,1>The Cost of OBS...
1 votes
1 votes
1 answer
4