Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct term for a fixed sized FIFO queue?

What is the correct name for the following data structure? It is:

  • A queue of fixed size
  • New elements are added to the start
  • Whenever the queue gets above a certain size a number of elements are removed from the end
like image 290
Thomas Bratt Avatar asked May 28 '09 08:05

Thomas Bratt


People also ask

What is fixed size queue?

Fixed Size/Capacity Queue It is a queue, and the size of the queue is fixed, it means that the queue cannot hold more than specified limit of number of data.

What is queue why it is known as FIFO?

A queue is a First-In First-Out (FIFO) data structure, commonly used in situations where you want to process items in the order they are created or queued. It is considered a limited access data structure since you are restricted to removing the oldest element first.

Which data structure is also known as FIFO?

The data structure that implements FIFO is Queue.

Is queue of fixed size Java?

The Java Collections Framework offers a few different fixed-size queues implementations. One such implementation is the ArrayBlockingQueue – a FIFO bounded queue using a fixed array to store the elements. The size of the queue can't be modified once it's created.


1 Answers

"a fixed sized FIFO queue"

Sometimes buffer, sometimes ring buffer ( as that's how it's normally implemented ). I'm not aware of anything which denotes your strategy for removing items in batches, though it's not uncommon.

like image 157
Pete Kirkham Avatar answered Jan 03 '23 16:01

Pete Kirkham