SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3670
Comparison of Stack and Queue Data structures
Regi Maliyekkel S1, Anila M2
1HSST Computer Science, GHSS Vattenad, Palakkad, Kerala, India
2Asst Professor on Conract, University Centre, Manjery, Kerala, India
--------------------------------------------------------------------------***----------------------------------------------------------------------------
Abstract - This paper describes the comparative study of
the very familiar Data structures Stack and Queue. While
solving problems using computers, the data may have to be
processed. These data may be of atomic type or grouped
(aggregate). The grouped data are refereed using arrays and
structures. Stack and Queue are non-primitive datastructures
and are used for storing data elements and are actually based
on some real world equivalent. The main differences between
stack and queue are that stack uses LIFO (last in first out)
method to access and add data elements whereas Queue uses
FIFO (First in first out) method to accessand add. Basedon the
analysis, a comparative study is being made thus the user can
easily understand the working principle and operations of
these two data structures.
Key Words: Stack, Push, Pop, Queue, Deletion, Insertion,
Comparison
1. INTRODUCTION
The concept of data structure is similar to the collections
of plates in a stand, a set of disks in a CD pack and a queue in
which a new person can join the queue only at the rear end.
In computer science Data structure is a particular way of
organizing similar or dissimilar data items logically and can
be considered as a single unit. Since data structures
represents collections of data, these are closely related to
computer memory, as it is the storage space for data. Here
give a comparison study on two very familiar data structures
Stack and Queue.
1.1 Stack
The Stack is formed by placing each item one over the
other. We can say that the items are addedatthetopposition.
And also wecan remove thatitem whichisplacedatlast.This
is the Last-In-First-Out (LIFO) principle. The Stack follows
LIFO principle. In Stack all Insertions and deletions of data
items are done at one end called Top.
Implementation of stack using array
Stack can be implementedasarray,insuchacase,there
is a limit to the number of elements that can be represented
by the stack and it depends on the size of the array.
STACK
40 25 32 10
0 1 2 3 4 5
TOS
Figure -1
In the above figure- 1 TOS indicates Top Of Stack (Last
position of the element in the stack). So by STACK[TOS]
indicates the value of the last data item of the stack. Initially
the value of TOS set to -1.
1.1.1. Operations on Stack
Two Operations are possible on stack Push and Pop.
Push is for inserting data items into stack and Pop is for
removing data items from it.
Push Operation
Push Operation is the process of insertinganewdata
item into Stack. The following Algorithm shows the Push
Operation on a Stack. For this consider an array Stack[S] that
implements a stack, where S is the maximum size of the
array.
Figure - 2
Step 1: If TOS< S Then ( For checking Space availability)
Step 2: TOS=TOS+1
Step 3: Stack[TOS]= Val
Step 4: Else
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3671
Step 5: Print “Stack Overflow”
Step 6: End of If
Pop Operation
Pop operation is the process of deleting an
element from the top of Stack. After every deletion,theTOSis
decremented by One.ThefollowingAlgorithm showsthePop
Operation on a Stack. For this consider an array Stack[S] that
implements a stack, where S is the maximum size of the
array.
Figure -3
Step 1: If TOS> -1 Then ( For checking Empty Stack)
Step 2: Val=Stack[TOS]
Step 3: TOS=TOS-1
Step 4: Else
Step 5: Print “Stack Underflow”
Step 6: End of If
1.2 Queue
We might have became part of queue in our life like
billing payment in shops in which one person at the front
position billing the payment fist and a new person can join
the queue at the rear position. This style of Organizing a
group is called Fist-In-First-Out(FIFO) principle. A data
structure that follows FIFO is called Queue.
Implementation of Queue using array
Figure shows a queue using array of integerswhich
can accommodate maximum 6 elements. It contains 5
elements and Front value is 0 and Rear value is 4. The first
element is represented by QUEUE[FRONT] and the last
element is QUEUE[REAR].
1.2.1. Operations on Queue
Insertion and Deletion are the two operations
performed on Queue
Insertion Operation
Adding a data element into a queue at the rear end is
called Insertion. Following shows Algorithm for Insertion
Operations. For this Consider an array QUEUE[S] that
implements a queue of Size S. The variable Front and Rear
keep track of the position value of FrontandRearelementsof
the queue.
Figure -4
Step 1: If (REAR== -1) Then ( For checking Empty Queue)
Step 2: FRONT=REAR=0
Step 3: QUEUE[REAR]=Val
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3672
Step 4: Else If(REAR < S) Then
Step 5: REAR=REAR+1
Step 6: QUEUE[REAR]=Val
Step 7: Else
Step 8: Print “Queue Overflow”
Step 9: End of if
Deletion Operation
Removal of data items fromthefront endofqueueis
called Deletion operation. Following shows Algorithm for
Deletion Operation. For this Consider an array QUEUE[S]
that implements a queue of Size S. The variable Front and
Rear keep track of the position value of Front and Rear
elements of the queue.
Figure -5
Step 1: If (FRONT. -1 AND
FRONT < REAR) Then
(For checking Empty Queue)
Step 2 : Val=QUEUE[FRONT]
Step 3 : FRONT=FRONT+1
Step 4 : Else
Step 5 : Print “Queue Underflow”
Step 6 : End of If
Step 7: If (FRONT>REAR) Then (last element deletion
checking)
Step 8: FRONT=REAR= -1
Step 9 : End of if
2. Comparison between Stack and Queue
Stack Queue
Principle LIFO FIFO
Variables TOS
FRONT
REAR
Operations
PUSH
POP
Insertion
Deletion
Time
Complexity
O(1)(Inserting
Item)
O(1)(Removing
Item)
O(1)(Inserting
Item)
O(n)(Removing
Item in worst case)
Table -1
3. CONCLUSION
It can be concluded that we have seen the comparison
study of the two popular Data structure Stack and Queue.
And also explained the different operations performed on
these with proper Algorithms. Both are linear data
structures differ in certain ways like working mechanism,
structure, implementation, variants but both are used for
storing the elements in thelistandperformingoperationson
the list like addition and deletion of the elements. Parsing in
a compiler. Stack used in Java virtual machine, Undo in a
word processor, Back button in a Web browser etc and
Queue used in Data Buffers, Asynchronous data transfer
(fileIO, pipes, sockets), Traffic analysis etc.
REFERENCES
[1] https://techdifferences.com/difference-between-stack-
and-queue.html
[2] https://www.geeksforgeeks.org/difference- between-
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3673
stack-and-queue-data-structures/
[3] https://ieeexplore.ieee.org/document/979991 Journals
& Magazines Volume: 28 Issue: 1
[4] IEEE Transactions on Software Engineering (Volume:
28 , Issue: 1 , Jan 2002 )
[5] Donald Knuth. The Art of Computer Programming
Volume1:FundamentalAlgorithms, Addison Wesley, 1997.
[6] RESEARCH PAPER ON STACK AND QUEUE Nitesh,
Manbir Singh, Rahul Yadav 2014 IJIRT Volume 1 Issue 7 |
ISSN: 2349

More Related Content

PDF
What is Stack, Its Operations, Queue, Circular Queue, Priority Queue
PPTX
Computer Science-Data Structures :Abstract DataType (ADT)
PPT
Stack and queue
PPTX
Study & Analysis of Complexities of Stack & Queue Operations in Data Structure
PPTX
PPTX
My lectures circular queue
What is Stack, Its Operations, Queue, Circular Queue, Priority Queue
Computer Science-Data Structures :Abstract DataType (ADT)
Stack and queue
Study & Analysis of Complexities of Stack & Queue Operations in Data Structure
My lectures circular queue

What's hot (20)

PDF
Dsa circular queue
PPSX
Data Structure (Queue)
PPTX
Queue
PPTX
queue & its applications
PPTX
Circular Queue data structure
PPT
Queue data structure
PPT
basics of queues
PPT
Queue Data Structure
PPT
Priority queues
PPTX
PPTX
PDF
Foss4 g topology_july_16_2015
PPTX
Queue ppt
PPTX
Introduction to data structure
PPT
Queue AS an ADT (Abstract Data Type)
PPTX
المحاضرة الثامنة: تراكيب البيانات الطابور
PDF
Link List
Dsa circular queue
Data Structure (Queue)
Queue
queue & its applications
Circular Queue data structure
Queue data structure
basics of queues
Queue Data Structure
Priority queues
Foss4 g topology_july_16_2015
Queue ppt
Introduction to data structure
Queue AS an ADT (Abstract Data Type)
المحاضرة الثامنة: تراكيب البيانات الطابور
Link List
Ad

Similar to IRJET- Comparison of Stack and Queue Data Structures (20)

PDF
DSA Lab Manual C Scheme.pdf
PPT
Difference between stack and queue
PPTX
chapter three ppt.pptx
PPTX
TSAT Presentation1.pptx
PPTX
Data structures
PPTX
Stack and queue
PDF
computer notes - Memory organization
PPT
The Stack in data structures .ppt
PPTX
Data structure , stack , queue
PDF
5-Queue-----------------------------in c++
PPTX
Data Structures_Linear Data Structures Queue.pptx
PPTX
Stack in C.pptx
DOC
Data Structure
PPTX
VCE Unit 03vv.pptx
PPTX
Stack Data Structure with Static Implementation (2).pptx
PPT
Lec-07 Queues.ppt queues introduction to queue
PPTX
Ist year Msc,2nd sem module1
PDF
Sorting Algorithms
PDF
Abstract Data Types (a) Explain briefly what is meant by the ter.pdf
PPSX
Data structure stack&queue basics
DSA Lab Manual C Scheme.pdf
Difference between stack and queue
chapter three ppt.pptx
TSAT Presentation1.pptx
Data structures
Stack and queue
computer notes - Memory organization
The Stack in data structures .ppt
Data structure , stack , queue
5-Queue-----------------------------in c++
Data Structures_Linear Data Structures Queue.pptx
Stack in C.pptx
Data Structure
VCE Unit 03vv.pptx
Stack Data Structure with Static Implementation (2).pptx
Lec-07 Queues.ppt queues introduction to queue
Ist year Msc,2nd sem module1
Sorting Algorithms
Abstract Data Types (a) Explain briefly what is meant by the ter.pdf
Data structure stack&queue basics
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
Digital Logic Computer Design lecture notes
PPTX
additive manufacturing of ss316l using mig welding
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PPT
Mechanical Engineering MATERIALS Selection
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Well-logging-methods_new................
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
CYBER-CRIMES AND SECURITY A guide to understanding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Sustainable Sites - Green Building Construction
Digital Logic Computer Design lecture notes
additive manufacturing of ss316l using mig welding
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
OOP with Java - Java Introduction (Basics)
Mechanical Engineering MATERIALS Selection
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Embodied AI: Ushering in the Next Era of Intelligent Systems
Well-logging-methods_new................
Lecture Notes Electrical Wiring System Components
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx

IRJET- Comparison of Stack and Queue Data Structures

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3670 Comparison of Stack and Queue Data structures Regi Maliyekkel S1, Anila M2 1HSST Computer Science, GHSS Vattenad, Palakkad, Kerala, India 2Asst Professor on Conract, University Centre, Manjery, Kerala, India --------------------------------------------------------------------------***---------------------------------------------------------------------------- Abstract - This paper describes the comparative study of the very familiar Data structures Stack and Queue. While solving problems using computers, the data may have to be processed. These data may be of atomic type or grouped (aggregate). The grouped data are refereed using arrays and structures. Stack and Queue are non-primitive datastructures and are used for storing data elements and are actually based on some real world equivalent. The main differences between stack and queue are that stack uses LIFO (last in first out) method to access and add data elements whereas Queue uses FIFO (First in first out) method to accessand add. Basedon the analysis, a comparative study is being made thus the user can easily understand the working principle and operations of these two data structures. Key Words: Stack, Push, Pop, Queue, Deletion, Insertion, Comparison 1. INTRODUCTION The concept of data structure is similar to the collections of plates in a stand, a set of disks in a CD pack and a queue in which a new person can join the queue only at the rear end. In computer science Data structure is a particular way of organizing similar or dissimilar data items logically and can be considered as a single unit. Since data structures represents collections of data, these are closely related to computer memory, as it is the storage space for data. Here give a comparison study on two very familiar data structures Stack and Queue. 1.1 Stack The Stack is formed by placing each item one over the other. We can say that the items are addedatthetopposition. And also wecan remove thatitem whichisplacedatlast.This is the Last-In-First-Out (LIFO) principle. The Stack follows LIFO principle. In Stack all Insertions and deletions of data items are done at one end called Top. Implementation of stack using array Stack can be implementedasarray,insuchacase,there is a limit to the number of elements that can be represented by the stack and it depends on the size of the array. STACK 40 25 32 10 0 1 2 3 4 5 TOS Figure -1 In the above figure- 1 TOS indicates Top Of Stack (Last position of the element in the stack). So by STACK[TOS] indicates the value of the last data item of the stack. Initially the value of TOS set to -1. 1.1.1. Operations on Stack Two Operations are possible on stack Push and Pop. Push is for inserting data items into stack and Pop is for removing data items from it. Push Operation Push Operation is the process of insertinganewdata item into Stack. The following Algorithm shows the Push Operation on a Stack. For this consider an array Stack[S] that implements a stack, where S is the maximum size of the array. Figure - 2 Step 1: If TOS< S Then ( For checking Space availability) Step 2: TOS=TOS+1 Step 3: Stack[TOS]= Val Step 4: Else
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3671 Step 5: Print “Stack Overflow” Step 6: End of If Pop Operation Pop operation is the process of deleting an element from the top of Stack. After every deletion,theTOSis decremented by One.ThefollowingAlgorithm showsthePop Operation on a Stack. For this consider an array Stack[S] that implements a stack, where S is the maximum size of the array. Figure -3 Step 1: If TOS> -1 Then ( For checking Empty Stack) Step 2: Val=Stack[TOS] Step 3: TOS=TOS-1 Step 4: Else Step 5: Print “Stack Underflow” Step 6: End of If 1.2 Queue We might have became part of queue in our life like billing payment in shops in which one person at the front position billing the payment fist and a new person can join the queue at the rear position. This style of Organizing a group is called Fist-In-First-Out(FIFO) principle. A data structure that follows FIFO is called Queue. Implementation of Queue using array Figure shows a queue using array of integerswhich can accommodate maximum 6 elements. It contains 5 elements and Front value is 0 and Rear value is 4. The first element is represented by QUEUE[FRONT] and the last element is QUEUE[REAR]. 1.2.1. Operations on Queue Insertion and Deletion are the two operations performed on Queue Insertion Operation Adding a data element into a queue at the rear end is called Insertion. Following shows Algorithm for Insertion Operations. For this Consider an array QUEUE[S] that implements a queue of Size S. The variable Front and Rear keep track of the position value of FrontandRearelementsof the queue. Figure -4 Step 1: If (REAR== -1) Then ( For checking Empty Queue) Step 2: FRONT=REAR=0 Step 3: QUEUE[REAR]=Val
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3672 Step 4: Else If(REAR < S) Then Step 5: REAR=REAR+1 Step 6: QUEUE[REAR]=Val Step 7: Else Step 8: Print “Queue Overflow” Step 9: End of if Deletion Operation Removal of data items fromthefront endofqueueis called Deletion operation. Following shows Algorithm for Deletion Operation. For this Consider an array QUEUE[S] that implements a queue of Size S. The variable Front and Rear keep track of the position value of Front and Rear elements of the queue. Figure -5 Step 1: If (FRONT. -1 AND FRONT < REAR) Then (For checking Empty Queue) Step 2 : Val=QUEUE[FRONT] Step 3 : FRONT=FRONT+1 Step 4 : Else Step 5 : Print “Queue Underflow” Step 6 : End of If Step 7: If (FRONT>REAR) Then (last element deletion checking) Step 8: FRONT=REAR= -1 Step 9 : End of if 2. Comparison between Stack and Queue Stack Queue Principle LIFO FIFO Variables TOS FRONT REAR Operations PUSH POP Insertion Deletion Time Complexity O(1)(Inserting Item) O(1)(Removing Item) O(1)(Inserting Item) O(n)(Removing Item in worst case) Table -1 3. CONCLUSION It can be concluded that we have seen the comparison study of the two popular Data structure Stack and Queue. And also explained the different operations performed on these with proper Algorithms. Both are linear data structures differ in certain ways like working mechanism, structure, implementation, variants but both are used for storing the elements in thelistandperformingoperationson the list like addition and deletion of the elements. Parsing in a compiler. Stack used in Java virtual machine, Undo in a word processor, Back button in a Web browser etc and Queue used in Data Buffers, Asynchronous data transfer (fileIO, pipes, sockets), Traffic analysis etc. REFERENCES [1] https://techdifferences.com/difference-between-stack- and-queue.html [2] https://www.geeksforgeeks.org/difference- between-
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3673 stack-and-queue-data-structures/ [3] https://ieeexplore.ieee.org/document/979991 Journals & Magazines Volume: 28 Issue: 1 [4] IEEE Transactions on Software Engineering (Volume: 28 , Issue: 1 , Jan 2002 ) [5] Donald Knuth. The Art of Computer Programming Volume1:FundamentalAlgorithms, Addison Wesley, 1997. [6] RESEARCH PAPER ON STACK AND QUEUE Nitesh, Manbir Singh, Rahul Yadav 2014 IJIRT Volume 1 Issue 7 | ISSN: 2349