Skip to main content

Part of the book series: Undergraduate Texts in Computer Science ((UTCS))

  • 501 Accesses

Abstract

Aqueueis a sequential, homogeneous, variable-sized, possibly empty collection of objects whose attributes and operations satisfy the following:

  1. 1.

    A queue is said to beemptywhen it contains no objects.

  2. 2.

    A queue has two ends, called thefrontand therear.

  3. 3.

    The only object in a queue that is visible is the object at the front of the queue.

  4. 4.

    The Dequeue operation removes the object currently at thefrontof the queue. All remaining objects in the queue, if any, move one position forward toward the front of the queue. The object immediately following the front object becomes the new front of the queue. If there are no other objects in the queue, the queue becomesempty.

  5. 5.

    The Enqueue operation inserts new objects at therearof the queue. If the queue was empty, the enqueued object becomes the front object in the queue. At any time, new objects may be enqueued. When an object is enqueued, it becomes the rear object in the queue.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1997 Springer Science+Business Media New York

About this chapter

Cite this chapter

Beidler, J. (1997). Queues. In: Data Structures and Algorithms. Undergraduate Texts in Computer Science. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-1854-8_4

Download citation

  • DOI: https://doi.org/10.1007/978-1-4612-1854-8_4

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4612-7312-7

  • Online ISBN: 978-1-4612-1854-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics