Dequeue ADT Flashcards
1
Q
What is a dequeue?
A
a double ended queue
2
Q
What is a doubly linked list?
A
very similar to a singly linked list, but it can be traversed forwards and backwards. This means for each add or remove operation, we need to update the ‘previous’ pointer as well as the ‘next’ pointer
3
Q
What are the main methods for a doubly linked list?
A
addFirst,
addLast,
removeFirst,
removeLast
4
Q
What are the runtimes for the methods in a doubly lined list
A
all theta 1
5
Q
What is the dequeue for?
A
applications that require modification at both ends of the queue, i.e a palindrome checker