Deque: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


* [[Data Structures#Deque|Data Structures]]
* [[Data Structures#Deque|Data Structures]]
* [[Queue#Overview|Queue]]
* [[Stack#Overview|Stack]]


=Overview=
=Overview=

Revision as of 20:58, 11 August 2018

External

Internal

Overview

A deque is a dynamic set that generalizes the concept of queue. The elements can be enqueued and dequeued both from the head and the tail of the deque. The INSERT and DELETE operations have each two versions:

  • insert to head or push.
  • delete from head or pop.
  • insert to tail or inject.
  • delete from tail or eject.