Queue DS
Queue DS
Queue
Queue
Queue as a Data Structure
Queue
Queue is an ordered list (linear data structure) in which
insertions(Enqueue) are done at rear end and deletions(dequeue)
are done at the front end of the Queue.
ADT of Queue
if(isfull()) return 1
front rear
Empty queue will have front and rear with the following conditions:
front->next=NULL
rear=NULL
---
rear = NULL;
front
Linked Queue and Operations
front rear
newNode
front rear
Enqueue operation: a) New node created b) New node inserted (Enqueue complete)
Linked Queue and Operations
front rear
front rear