¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Priority Queue

Chaitanya Sarda Computer Studies Interview Inglés 1 página

Contenido del apunte (1)

Página 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.

Información

Descripción
Interview Computer Studies Apunte sobre Priority Queue, creado por Chaitanya Sarda el 13/08/2017.
Creado por
Chaitanya Sarda · ago 2017
Actualizado
13 ago 2017
Visitas
5
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?