SlideShare a Scribd company logo
deque And 
Its Applications 
B.Manoj - 13MX27 
M.Parthiban - 13MX32 
R.Sathasivam - 13MX41 
G.Sivanantham - 13MX45 
N.TamilArasan – 13MX49
What is deque ? 
 A double-ended queue is an abstract data type 
that generalizes a queue, for which elements can 
be added to or removed from either the front or 
rear. 
 It is also often called a head-tail linked list.
Types 
Input-restricted deque 
Deletion can be made from both ends , but 
Insertion can be made at one end only. 
Output-restricted deque 
Insertion can be made at both ends , but 
Deletion can be made from one end only.
Operations 
pushRear() - Insert element at back 
pushFront() - Insert element at front 
popRear() - Remove last element 
popFront() - Remove first element 
isEmpty() – Checks whether the queue 
is empty or not.
Example of deque Operation 
Operation deque Contents Return Value 
isEmpty() [] True 
pushFront(‘a’) [‘a’] 
pushFront(‘b’) [‘b’ , ‘a’] 
pushRear(‘c’) [‘b’ , ‘a’ , ‘c’] 
popFront() [‘a’ , ‘c’] ‘b’ 
isEmpty() [‘a’ , ‘c’] False 
popRear() [‘a’] ‘c’
deque Applications 
Palindrome Checker 
Madam, Radar, Malayalam are some examples 
for palindrome
deque Applications 
A-Steal job scheduling algorithm 
– The A-Steal algorithm implements task scheduling 
for several processors(multiprocessor scheduling). 
– The processor gets the first element from the deque. 
– When one of the processor completes execution of 
its own threads it can steal a thread from another 
processor. 
– It gets the last element from the deque of another 
processor and executes it.
deque Applications 
Undo - Redo operation in software applications
Any Query ?
Thank You

More Related Content

PPTX
Queue
PDF
PPTX
Deque and its applications
PPTX
Stack and its operations
PPTX
My lectures circular queue
PPT
Algorithm: priority queue
PPTX
Operator Overloading & Type Conversions
Queue
Deque and its applications
Stack and its operations
My lectures circular queue
Algorithm: priority queue
Operator Overloading & Type Conversions

What's hot (19)

PDF
Queues
DOCX
Heap sort & bubble sort
PPTX
R: Apply Functions
PPT
Queue implementation
PDF
What is Stack, Its Operations, Queue, Circular Queue, Priority Queue
PPTX
Queues in C++
PDF
Queue as data_structure
PPSX
Data Structure (Queue)
PPTX
Queue in Data Structure
PPTX
PPTX
Queue-Data Structure
PPTX
MCM FUNCTIONS BLACKBOARD COMPATIBILITY
PPTX
BB - Functions (Operations and Piecewise)
PPTX
operator overloading & type conversion in cpp over view || c++
PDF
Queues-handouts
PPT
PPT
Operator overloading
PPTX
queue & its applications
Queues
Heap sort & bubble sort
R: Apply Functions
Queue implementation
What is Stack, Its Operations, Queue, Circular Queue, Priority Queue
Queues in C++
Queue as data_structure
Data Structure (Queue)
Queue in Data Structure
Queue-Data Structure
MCM FUNCTIONS BLACKBOARD COMPATIBILITY
BB - Functions (Operations and Piecewise)
operator overloading & type conversion in cpp over view || c++
Queues-handouts
Operator overloading
queue & its applications
Ad

Similar to Team 6 (20)

PDF
In java , I want you to implement a Data Structure known as a Doubly.pdf
PPT
Lec-07 Queues.ppt queues introduction to queue
PDF
05 queues
PPT
Queue Data Structure
PPT
2 b queues
PPTX
PPTX
The presention is about the queue data structure
PPTX
UNIT II LINEAR DATA STRUCTURES – STACKS.pptx
PDF
Data structure and algorithm.(dsa)
PPT
Queue data structure
PPT
Data Structures by Maneesh Boddu
PPT
queuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbb
DOCX
object oriented programming lab manual .docx
PPT
computer notes - Data Structures - 9
PPT
Lecture no 9.ppt operating system semester four
PDF
JAVA A double-ended queue is a list that allows the addition and.pdf
PPT
ajava arrays topic brief explanation data
PPTX
المحاضرة الثامنة: تراكيب البيانات الطابور
PPTX
Java Language fundamental
PPT
Chapter 6 ds
In java , I want you to implement a Data Structure known as a Doubly.pdf
Lec-07 Queues.ppt queues introduction to queue
05 queues
Queue Data Structure
2 b queues
The presention is about the queue data structure
UNIT II LINEAR DATA STRUCTURES – STACKS.pptx
Data structure and algorithm.(dsa)
Queue data structure
Data Structures by Maneesh Boddu
queuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbb
object oriented programming lab manual .docx
computer notes - Data Structures - 9
Lecture no 9.ppt operating system semester four
JAVA A double-ended queue is a list that allows the addition and.pdf
ajava arrays topic brief explanation data
المحاضرة الثامنة: تراكيب البيانات الطابور
Java Language fundamental
Chapter 6 ds
Ad

More from Sathasivam Rangasamy (11)

Team 6

  • 1. deque And Its Applications B.Manoj - 13MX27 M.Parthiban - 13MX32 R.Sathasivam - 13MX41 G.Sivanantham - 13MX45 N.TamilArasan – 13MX49
  • 2. What is deque ?  A double-ended queue is an abstract data type that generalizes a queue, for which elements can be added to or removed from either the front or rear.  It is also often called a head-tail linked list.
  • 3. Types Input-restricted deque Deletion can be made from both ends , but Insertion can be made at one end only. Output-restricted deque Insertion can be made at both ends , but Deletion can be made from one end only.
  • 4. Operations pushRear() - Insert element at back pushFront() - Insert element at front popRear() - Remove last element popFront() - Remove first element isEmpty() – Checks whether the queue is empty or not.
  • 5. Example of deque Operation Operation deque Contents Return Value isEmpty() [] True pushFront(‘a’) [‘a’] pushFront(‘b’) [‘b’ , ‘a’] pushRear(‘c’) [‘b’ , ‘a’ , ‘c’] popFront() [‘a’ , ‘c’] ‘b’ isEmpty() [‘a’ , ‘c’] False popRear() [‘a’] ‘c’
  • 6. deque Applications Palindrome Checker Madam, Radar, Malayalam are some examples for palindrome
  • 7. deque Applications A-Steal job scheduling algorithm – The A-Steal algorithm implements task scheduling for several processors(multiprocessor scheduling). – The processor gets the first element from the deque. – When one of the processor completes execution of its own threads it can steal a thread from another processor. – It gets the last element from the deque of another processor and executes it.
  • 8. deque Applications Undo - Redo operation in software applications