removeMin.MinHeap {Containers}R Documentation

Remove the Root Element of a Min-Heap

Description

This method removes and returns the smallest element of a MinHeap.

Details

smallest = aMinHeap$removeMin()

Value

removeMin removes and returns the root element of the MinHeap in question, or returns NULL if the MinHeap is empty.

Author(s)

John Hughes


[Package Containers version 1.2 Index]