Studying for a final here soon and I was wondering if creating an optimal binary search tree as asked in the question below is the same as creating a huffman tree given the symbols and frequencies.
Compute an optimal binary search tree with keys K1 < K2 < K3 < K4 for the probabilities:
p1 = .1 p2 = .2 p3 = .3 p4 = .1
q0 = .15 q1 = .05 q2 = 0 q3 = .1
So here we would pair the lowest two probabilities and create a internal node of probability = n1 + n2 then pair the next lowest two probabilites, and so on?