From charlesreid1

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Main|StacksQueues}}
Queue ADT (abstract data type):
Queue ADT (abstract data type):
* an instance Q of a queue data type supports the following two methods:
* an instance Q of a queue data type supports the following two methods:
Line 7: Line 9:
* Q.is_empty()
* Q.is_empty()
* len(Q)
* len(Q)


=Flags=
=Flags=


{{DataStructuresFlag}}
{{StacksQueuesFlag}}


[[Category:Queues]]
[[Category:Queues]]

Latest revision as of 09:11, 5 September 2017

Queue ADT (abstract data type):

  • an instance Q of a queue data type supports the following two methods:
  • Q.enqueue(e)
  • Q.dequeue()
  • Additional convenience methods:
  • Q.peek()
  • Q.is_empty()
  • len(Q)

Flags