Class PrioritySet<P>

A deduplicating priority queue that overwrites duplicate entries, based on a singly-linked list.

Type Parameters

  • P

Constructors

Methods

Constructors

Methods

  • Empty the queue.

    Returns void

  • Insert a new element into the queue based on its priority. If a duplicate entry already exists, abort the insertion.

    Parameters

    Returns void

  • Return the number of elements in the queue.

    Returns number