示例#1
0
        public int Insert(T item, float utility)
        {
            var hn = new HeapNode <T>();

            hn.t   = item;
            hn.key = utility;
            return(heap.insert(hn));
        }
示例#2
0
 public int CompareTo(HeapNode <T> other)
 {
     return(key.CompareTo(other.key));
 }