1 (* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
8 functor EagerBinomialHeap(S: HEAP_STRUCTS): HEAP =
13 structure Heap = ForestHeap(structure Key = Key)
18 val insert = insertEager
20 val decreaseKey = decreaseKeySift
22 val delete = deleteSift
24 val union = unionEager
28 functor LazyBinomialHeap(S: HEAP_STRUCTS): HEAP =
33 structure Heap = ForestHeap(structure Key = Key)
38 val insert = insertLazy
40 val decreaseKey = decreaseKeySift
42 val delete = deleteSift