ALGORITHM : ENQUEVE
Yp: An element ITEM
Haat has t be fnserted.
: The {tm s
_at tae uaA e th.
aMay tupsuentation stzuutusL, tue
fointus FRONT and REAK D the que q ase Rre
Rnown:
4 (REAR - N) thn
2
Exit
4El4e
1/ (REAR=0) and (ERONTeo) then
FR ONT )
REAR REAR tI
4.
aREAR]: (TEN
ALaORITHN: DEQUEVE
eleme nts TkoN and REAR as te two fat ntus.
:A au with
dletod elmat is atused fn TEM.
P: The
presentation ol a queue stoutuu
Yp: An element ITEM
Haat has t be fnserted.
: The {tm s
_at tae uaA e th.
aMay tupsuentation stzuutusL, tue
fointus FRONT and REAK D the que q ase Rre
Rnown:
4 (REAR - N) thn
2
Exit
4El4e
1/ (REAR=0) and (ERONTeo) then
FR ONT )
REAR REAR tI
4.
aREAR]: (TEN
ALaORITHN: DEQUEVE
eleme nts TkoN and REAR as te two fat ntus.
:A au with
dletod elmat is atused fn TEM.
P: The
presentation ol a queue stoutuu