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

Notizen

Priority Queue

Chaitanya Sarda Computer Studies Interview Englisch 1 Seite

Inhalt der Notizen (1)

Seite 1

Priority Queue can be implemented using Arrays, linkedlist or heaps. http://www.geeksforgeeks.org/priority-queue-set-1-introduction/

A typical priority queue supports following operations.

insert(item, priority): Inserts an item with given priority.

getHighestPriority(): Returns the highest priority item.

deleteHighestPriority(): Removes the highest priority item.

Time Complexity for different implementation styles is different

Applications of Priority Queue:

1) CPU Scheduling

2) Graph algorithms like Dijkstra’s shortest path algorithm, Prim’s Minimum Spanning Tree, etc

3) All queue applications where priority is involved.

Informationen

Beschreibung
Interview Computer Studies Notiz am Priority Queue, erstellt von Chaitanya Sarda am 13/08/2017.
Erstellt von
Chaitanya Sarda
Aufrufe
5
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck