Mapa mental
Priority Queue
Contenido del mapa
Priority Queue
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
Add Method
- int index; PQElement elem = new PQElement(priorkey,item);
- if (index > size()) thePQueue.add(elem); else thePQueue.add(index, elem);
Remove
- public Object dequeue() { return thePQueue.remove(0); }
FindElement
Size
- return PQueue.size();
isEmpty
- return PQueue.isEmpty();
Información
- Descripción
- Mapa Mental sobre Priority Queue, creado por Ian Arbuckle el 07/01/2015.
- Creado por
- Ian Arbuckle
- Visitas
- 1
- Valoración