Example #1
0
 protected override bool MustBubbleUp(MinHeap <Quote> child, MinHeap <Quote> parent)
 {
     return(child.CompareTo(parent) < 0);
 }
Example #2
0
 protected override bool StopBubbleUp(MinHeap <Quote> parent, MinHeap <Quote> child)
 {
     return(parent.CompareTo(child) < 1);
 }