Class RandomFastLookupPriorityQueue

    • Constructor Detail

      • RandomFastLookupPriorityQueue

        public RandomFastLookupPriorityQueue​(int initialCapacity,
                                             double probability)
        Creates a PriorityQueue with the specified initial capacity that orders its elements according to the specified comparator.
        Parameters:
        initialCapacity - the initial capacity for this priority queue
        comparator - the comparator that will be used to order this priority queue. If null, the natural ordering of the elements will be used.
        Throws:
        java.lang.IllegalArgumentException - if initialCapacity is less than 1
      • RandomFastLookupPriorityQueue

        public RandomFastLookupPriorityQueue​(int initialCapacity,
                                             int maxCost,
                                             double probability)