Interface SmartPriorityQueue<E>

    • Method Detail

      • peekMin

        E peekMin()
        Retrieves, but does not remove the element with the minimum key in the priority queue. If there are several elements with minimal key values, one of them is chosen arbitrarily.
        Returns:
        an element with a minimal key.
      • extractMin

        E extractMin()
        Retrieves and removes the element with the minimum key in the priority queue. If there are several elements with minimal key values, one of them is chosen arbitrarily.
        Returns:
        the element with the previously minimal key.