Introduction To Data Structures: By-Dr. Shweta R. Malwe Assistant Professor Area of CSE
Introduction To Data Structures: By-Dr. Shweta R. Malwe Assistant Professor Area of CSE
By-
Primitive DS Non-Primitive DS
Linear DS Non-Linear DS
10 20 30 40 50
front rear
Queue
• Queue are first in first out type of data structure (i.e.
FIFO)
• In a queue new elements are added to the queue from
one end called REAR end and the element are always
removed from other end called the FRONT end.
• The people standing in a railway reservation row are
an example of queue.
Queue
v1 8 11
15
9 v2
v3 v4 v4