Queue Based Data Structure
Queue Based Data Structure
It is a linear data structure represent a container of objects that are inserted and removed according to the first-in-firstout (FIFO) principle. That is, elements can be removed at any time, but only the element that has been in the queue the
longest can be removed at any time; that is random access of any specific item is not allowed. Queue elements may be
inserted at the back (called the REAR end) and removed from the front end (called FRONT end).
PRESENTATION OF QUEUE
Insertion
Deletio
n
Front
Rear
[Empty queue?]
Else
[Increment FRONT pointer]
FRONT = FRONT + 1
[EndIf]
Step 4: Return