Optimal Binary Search Tree

  Explanation Video

Normal binary search tree

In given set of elements how many binary search trees are possible?
Tree that gives optimal/best search result based on given frequency on keys, is called Optimal BST.
Generate Optimal BST
Cost of searching element in BST

Greeksforgreeks link









Comments

Popular posts from this blog

SQL basic interview question

gsutil Vs Storage Transfer Service Vs Transfer Appliance