ARRAY IMPLEMENTATION OF QUEUES Using rear and front. It is a linear data structure and it follows the first in first out technique. Using C++ Programming Language.
Definition:
ARRAY IMPLEMENTATION OF QUEUES Using rear and front.
ALGORITHM:
Enqueue
Dequeue
Is empty
Is full
Display
For Example:
Enter choice
Menu...
1.Insert
2.Delete
3.Display
1
Enter the data 2
Do you want to continue (0/1) 1
Enter choice
Menu...
1.Insert
2.Delete
3.Display
1
Enter the data 3
Do you want to continue (0/1) 1
Enter choice
Menu...
1.Insert
2.Delete
3.Display
3
Displaying...
2 3
Do you want to continue (0/1 )1
Enter choice
Menu...
1.Insert
2.Delete
3.Display
2
Displaying...
3
Do you want to continue (0/1) 0
NOTE:
In a queue, the element is inserted on the rear side and deleted on the front side.
Submitted by Srivenurajulu G (Srivenurajulu)
Download packets of source code on Coders Packet
Comments