diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-04-13 15:38:12 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-04-13 15:38:12 +0800 |
commit | 94b9306918045e4bfde1d3ce94e1ec451c30aa2f (patch) | |
tree | ef290e341653f0d5f83b13050dd0d61f52496a9c /Heap/Heap.hs | |
download | pfds-94b9306918045e4bfde1d3ce94e1ec451c30aa2f.tar.gz pfds-94b9306918045e4bfde1d3ce94e1ec451c30aa2f.tar.bz2 pfds-94b9306918045e4bfde1d3ce94e1ec451c30aa2f.zip |
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 + |