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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some of the uses of a linked list

1.
2.
3.
4.

A
  1. Operating system manages a processor to store process blocks
  2. Image viewers switch between previous and next images
  3. Music players store tracks in a playlist
  4. Web browsers navigate backwards and forwards
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What operations can be performed by linked lists?

A
  1. Add
  2. Delete
  3. Next
  4. Previous
  5. Traverse
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly