QUEUE - A List of Elements  :
Print this page
 

ALGORITHM FOR ADDITION AND DELETION OF ITEMS IN A QUEUE

note : deletion is allowed only at the front end of the queue
delete (item , queue , rear , front)
{
if (rear==front)
then print "queue is empty";
else
{
item = queue [front] ;
front=front+1 ;
}
}
       
Prev