top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is a dequeue?

+2 votes
355 views
What is a dequeue?
posted Apr 15, 2015 by Jalal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
 
Best answer

A dequeue is a double-ended queue. This is a structure wherein elements can be inserted or removed from either end.

DeQueue is a data structure in which elements may be added to or deleted from the front or the rear.
Like an ordinary queue, a double-ended queue is a data structure it supports the following operations: enq_front, enq_back, deq_front, deq_back, and empty. Dequeue can be behave like a queue by using only enq_front and deq_front , and behaves like a stack by using only enq_front and deq_rear. .

enter image description here

DeQueue can be represented in two ways they are

1) Input restricted DeQueue 
2) output restricted DeQueue
answer Apr 16, 2015 by Mohammed Hussain
...