Ejemplo n.º 1
0
 /// <summary>
 /// Constructor using predefined priority rules
 /// </summary>
 /// <param name="compararer">The compararer which will set the priority rules</param>
 public PriorityQueue(Comparer <T> compararer)
 {
     this.queue = new BinaryHeap <T>(compararer);
 }
Ejemplo n.º 2
0
 public PriorityQueue()
 {
     this.items = new BinaryHeap <T>();
 }