MIDTERM Flashcards
What should the vocabulary of pseudocode be?
Problem Domain
What is another word for list?
Collection
What kind of list is an array?
Linear List
What kind of data structure is Last In, First Out?
Stacks
What end of a stack do removals happen?
Head
What end of a stack do additions happen?
Head
What is it called when a stack is full?
an Overflow State
What operations does a stack have?
- Push
- Pop
- Peek
- isFull
What is a linked list?
A collection of nodes
What does a node consist of?
Data and pointer(s)
How many pointers are held in a node for a stack?
One: Pointer to next
What is it called when moving from one node to another by following a next reference?
Link Hopping, or Pointer Hopping
What is the first node in a list called?
Head
What is the last node in a list called?
Tail
What direction can a singly linked list be traversed?
From head to tail
What is the difference between a singly linked list and a doubly linked list?
Pointer to previous
What end of a queue do additions happen?
Tail
What end of a queue do removals happen?
Head