Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

Search

  • Filter Results
  • Location
  • Classification
    • Article type
    • Author
    • Set as Cover Page of Book
    • License
    • Show TOC
    • Transcluded
    • OER program or Publisher
    • Autonumber Section Headings
    • License Version
    • Print CSS
  • Include attachments
Searching in
About 1 results
  • https://eng.libretexts.org/Bookshelves/Computer_Science/Databases_and_Data_Structures/Open_Data_Structures_-_An_Introduction_(Morin)/02%3A_Array-Based_Lists/2.03%3A_ArrayQueue_-_An_Array-Based_Queue
    In this section, we present the ArrayQueue data structure, which implements a FIFO (first-in-first-out) queue; elements are removed (using the \(\mathtt{remove()}\) operation) from the queue in the sa...In this section, we present the ArrayQueue data structure, which implements a FIFO (first-in-first-out) queue; elements are removed (using the \(\mathtt{remove()}\) operation) from the queue in the same order they are added (using the \(\mathtt{add(x)}\) operation). We could maintain one index \(\mathtt{j}\) that keeps track of the next element to remove and an integer \(\mathtt{n}\) that counts the number of elements in the queue.

Support Center

How can we help?