I am having really hard time with this and I don't know how to approach it - would really appreciate your help:
A company tries to build a SP tree data structure so that each intersection contains two keys: a sorting key skey that gives SP the abilities of a binary search tree, and a pkey key that gives SP the abilities of a minimum heap(assuming that all of the pkey keys are different from one another).
How can I show that there exists singular(single) data structure SP that consists of n pairs of keys(skey, pkey)?
I mean, because of pkey(the min-heap),it says that the heap tree will be defined so that each of its sons are larger in value than their parents. But, because of the skey (the binary tree), it means that only on the right side there will be elements with value larger than the parent(the left should be less, but i don't know how it combines with the pkey requirement - since it the sons should be with a higher value than the parent). I really don't understand it - does the tree that should be obtained looks like a line towards the right?
I really don't understand and would really appreciate if you guys could help me with that.