Chapter Five: Stack and Queues
Chapter Five: Stack and Queues
3 1 1
6 3 3
6 6
Cont..
Implementation: Stacks can be implemented as:
an array (contiguous list) and
a linked list.
Enqueue and
Dequeue Operations
Assignment 11
CPU Scheduling
Graph algorithms like Dijkstra’s shortest path algorithm,
Prim’s Minimum Spanning Tree, etc