GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Priority Queue

Ian Arbuckle Englisch

Inhalt der Mindmap

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();

Informationen

Beschreibung
Mindmap am Priority Queue, erstellt von Ian Arbuckle am 07/01/2015.
Erstellt von
Ian Arbuckle
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck