Algorithms for the Main Data Structures (OCR A-Level Computer Science): Flashcards

📚Flashcards
Queues
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

14 cards from this deck

Show

What principle do queues follow?

First In, First Out (FIFO)

FIFO stands for

First In, First Out

Enqueue operation

Adds an item to the rear of the queue

Dequeue operation

Removes an item from the front of the queue

Peek operation in queue

Returns item at front without removing it

IsEmpty operation

Checks if the queue is empty

Data structure used in BFS

Queue

Dynamic queue implementation method

Using a linked list

Static queue implementation method

Using a static array with fixed size

Circular queue characteristic

Rear wraps around to front when end of array is reached

Priority queue dequeue basis

Based on priority rather than arrival time

Queue overflow

Enqueuing into a full queue (static implementation)

Queue underflow

Dequeuing from an empty queue

Difference: Queue vs Stack principle

Queue uses FIFO, Stack uses LIFO

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Quizzes by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.