diff options
Diffstat (limited to 'Heap/Heap.hs')
-rw-r--r-- | Heap/Heap.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Heap/Heap.hs b/Heap/Heap.hs new file mode 100644 index 0000000..9db1424 --- /dev/null +++ b/Heap/Heap.hs @@ -0,0 +1,10 @@ +module Heap where + +class Heap h where + empty :: Ord a => h a + isEmpty :: Ord a => h a -> Bool + insert :: Ord a => a -> h a -> h a + merge :: Ord a => h a -> h a -> h a + findMin :: Ord a => h a -> a + deleteMin :: Ord a => h a -> h a + |