GoConqr has a new look! Let us know what you think.

Mind map

Priority Queue

Ian Arbuckle English

Map content

Priority Queue

  1. Principle

    • Set key as priority for high or low
    • Insert based on the key priority
    • Remove based on the priority key value at the front of queue
    • First out on priority key value
  2. Add Method

    • int index; PQElement elem = new PQElement(priorkey,item);
    • if (index > size()) thePQueue.add(elem); else thePQueue.add(index, elem);
  3. Remove

    • public Object dequeue() { return thePQueue.remove(0); }
  4. FindElement

  5. Size

    • return PQueue.size();
  6. isEmpty

    • return PQueue.isEmpty();

Information

Description
Mind Map on Priority Queue, created by Ian Arbuckle on 07/01/2015.
Created by
Ian Arbuckle
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?