A SkewBinomialHeap is a priority queue where elements are inserted in any order, using "insert" and are extracted in either ascending or descending order using "head", "peek", "tail", "pop" or any of their "try" variants. The main advantage of the SkewBinomialHeap over the BinomialHeap is that it supports insertions in constant time O(1). (Based on "Purely Functional Data Structures" - 1996 by Chris Okasaki)
Constructor | Description |
|
|
|
|
Instance member | Description |
Full Usage:
this.Count
Returns: int
|
|
Full Usage:
this.Head()
Returns: 'T
|
|
|
|
Full Usage:
this.IsDescending
Returns: bool
|
|
Full Usage:
this.IsEmpty
Returns: bool
|
|
|
|
|
|
Full Usage:
this.ToList()
Returns: 'T list
|
|
Full Usage:
this.TryHead()
Returns: 'T option
|
|
Full Usage:
this.TryMerge(other)
Parameters:
'T SkewBinomialHeap
Returns: 'T SkewBinomialHeap option
|
|
|
|
|
|
|
|