linked lists Flashcards

1
Q

how is a linked list constructed

A

from a series of nodes

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

what is a node

A

distinct object that contains both data, reference (pointer) to the next node

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

what is a difference between an array and a linked list

A

array: each element resides in a particular position which can be directly accessed using an index

linked list: a particular element can only be accessed by following the references (pointers) of all the previous element

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

what is logical representation

A

how the data, links are seen by the programmer

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

what is physical representation

A

underlying mechanisms that store the data in RAM

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

what does physical representation include

A

details like memory addresses, type of data, number of bytes used, the way the pointers are handled

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