If the code doesn't load, you can check it out on
GitHub
Group D
Q18: Given sequence k = k1 < k2 < ... < kn of n sorted keys, with a search probability pi for each key ki. Build the Binary search tree that has the least search cost given the access probability for each key?
Other Questions in Data Structures and Algorithms Laboratory