TreeStructures-0.0.1: Tree structures

Data.Heap.Binomial

Synopsis

Documentation

data (Ord a, Eq a) => BinomialHeap a Source

Instances

Ord a => Eq (BinomialHeap a) 
Ord a => Ord (BinomialHeap a) 

head :: Ord a => BinomialHeap a -> aSource

O(lg n)

tail :: Ord a => BinomialHeap a -> BinomialHeap aSource

O(lg n)

singleton :: Ord a => a -> BinomialHeap aSource

O(1).

fromList :: (Ord a, Eq a) => [a] -> BinomialHeap aSource

O(n)

toList :: Ord a => BinomialHeap a -> [a]Source

O(n lg n)

insert :: Ord a => BinomialHeap a -> a -> BinomialHeap aSource

O(lg n)