Click or drag to resize

FibonacciHeapTElementMerge Method

Merges the specified heap into this heap.

Namespace:  SD.Tools.Algorithmia.Heaps
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.4.0.0 (1.4.19.0529)
Syntax
public void Merge(
	FibonacciHeap<TElement> toMerge
)

Parameters

toMerge
Type: SD.Tools.Algorithmia.HeapsFibonacciHeapTElement
The heap to merge into this heap.
Remarks
Merge of two fibonacci heaps is considered O(1). This heap implementation keeps some datastructures for quickly finding elements back. Although these datastructures have an O(1) insert performance characteristic, it can be that the merge performance of this implementation is actually slightly less efficient than O(1) with large heaps

This routine merges objects inside toMerge into this object. This means that this object will have references to objects inside toMerge. It's therefore not recommended to alter toMerge after this operation.

See Also