sorry if this been asked already...
Why and when Should I use linked lists over vectors? I just don't like all those pointer overheads...
From my knowledge: vector is faster, more compact because there's no extra pointers, and is easier to implement; also I think that linked lists do not exploit the principle of spatial locality because nodes are in totally random memory locations so your code becomes slower... so when you are using linked lists you are increasing your cache misses which you don't want to do...
Of course the advantage of lists is that you can avoid overflows with dynamic memory allocation...
In summation, my question is: where should you use, if ever, linked lists over vectors? which data struct do you prefer more?