Why a linked list cannot jump ahead.
transcript
Read item one thousand. An array does it in one step. A linked list needs a thousand steps. Same data. Why the difference?
An array is one block of memory. Each value takes four bytes. Index two sits eight bytes past the start. The computer works that out in one step.
A linked list puts each value in a node. Each node is made when it is needed. So the nodes sit anywhere in memory. No arithmetic can find the third one.
Each node stores the next address. Start at the head. Follow next once. Then twice. Position two took two hops.
So, reading index one thousand. One step for the array. A thousand hops for the list. Every hop reads one node to find the next.
So it is a trade. The array jumps, but shifts to insert. The list walks, but inserts in one step.
Side by side means jumping. Chained means walking. Full breakdown in the lecture.