Linked Lists Flashcards
1
Q
What is a linked list?
A
A data structure where each node consists of data and a pointer. The pointer gives the location of the next node
2
Q
What are some of the uses of a linked list
1.
2.
3.
4.
A
- Operating system manages a processor to store process blocks
- Image viewers switch between previous and next images
- Music players store tracks in a playlist
- Web browsers navigate backwards and forwards
3
Q
What operations can be performed by linked lists?
A
- Add
- Delete
- Next
- Previous
- Traverse
4
Q
What is the structure of a linked list?
A
- The start pointer identifies the first node
- Each node contains data and pointers. Each pointer points to the next node
- Data in lists can be stored anywhere in memory