r/learnprogramming • • Jan 31 '14

Can someone ELI5 linked lists?

Part of my assignment for my online class involves linked lists and we don't really go over them. I looked around online and I'm slightly confused by all the explainations since I'm fairly new to programming. Can someone dumb it down for me?

77 Upvotes

85 comments sorted by

View all comments

Show parent comment

-1

u/[deleted] Feb 01 '14

a linked list is simply a series of memory addresses that have references

I am not sure why can't you see that you are mixing two categories of CS together.

Linked list is data structure with the properties that each element can give you next element.

It is an abstraction, theory, knowledge. It can have various implementations in various languages. The way you implement is application of theory, you actually have to program and think how the next element is obtained.

2

u/jbestbaby Feb 03 '14

Linked list is data structure with the properties that each element can give you the memory address of the next element.

FTFY

And yes that is true for Linked Lists on every level, whether in practice or concept. Sorry to burst your bubble, dumb fuck.

1

u/Samus_ Feb 02 '14

I don't care much about the theory as I'm not a Computer Scientist, I'm a Software Developer I deal with practice and in practice the abstract concept of a list is as useless as the abstract concpet of a number.

the mathematical notion of numbers has nothing to do with the way they're implemented on the computer, other than the fact that the computer representation aims to emulate that theoretical behavior as best as possible which most of the time isn't even close to the original idea.