Friday, 19 July 2013

Algorithm for Deletion an Element in Queue

  1. If front=Rear=NULLThen print Underflow And Exit
  2. Item =Queue[Rear]
  3. If(Front=Rear=1)Then Set Front=0     Set Rear=0ElseFront= front+1
  4. Exit

No comments:

Post a Comment