A queue is a linear data structure in computer science that represents an ordered collection of elements or items. In a queue, elements are added at one end, known as the “rear” or “back” of the queue, and removed from the other end, known as the “front” or “head” of the queue.