uheapq-heap queue algorithm
This module implements a subset of the corresponding CPython module, as described below.For more information, please refer to the original CPython documentation: heapq.
This module implements the heap queue algorithm.
A heap queue is just a list that stores its elements in some way.
Put elements into the heap.
Pop the first element in the heap and return it.If the heap is empty, an
IndexError is raised.
Convert the list x to a heap.This is an in-place (division exchange sort) operation.