/// <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);
 }
示例#2
0
 public PriorityQueue()
 {
     this.items = new BinaryHeap <T>();
 }