Data Structure
Data Structure
Sarna Fathima A
DATA STRUCTURE
● Stack is a linear data structure that follows a particular order in which the operations are
performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out). LIFO
implies that the element that is inserted last, comes out first and FILO implies that the
element that is inserted first, comes out last.
Realtime
● Operating System uses queues for job
scheduling.
● Queue, like Stack, is also an abstract data structure. The thing that makes
queue different from stack is that a queue is open at both its ends. Hence, it
follows FIFO (First-In-First-Out) structure, i.e. the data item inserted first will
also be accessed first. The data is inserted into the queue through one end and
deleted from it using the other end.
Examples