I am using the popular C5 library for C# (C5) and I'm trying to figure out how to implement the IPriorityQueue
properly. Lets say I have the set A={5,4,1,2,3}
. I want the priority to be the highest integer value. How do I implement this?
Could someone please give an example of where I add the elements in set A
one by one to the queue? Where can you specify the priority property? Kinda lost on the implementation.
The ultimate goal by the way is to use this to make a binary heap.