Mutiple elements insert to one node of heap.

Apr 27, 2016 at 1:53pm
Supposed I have a file contains many lines as this:

key A B

I want to make a heap that each node contains key, A and B. And key is the key of that node.

What I can do now is only one element each node. What should I do? I'm using make_heap to make my heap.

Last edited on Apr 27, 2016 at 1:55pm
Topic archived. No new replies allowed.