It's amazing how often people come and make some assertion that they could have easily disproved for themselves by simply googling it.
which algorithm use linked list |
Anything with trees and graph traversal (and I guarantee you have no idea how encompassing that is -- enjoy using the internet? there you go), constant time memory needs (like in hash tables), any kind of language design and often in implementation (functional languages use them almost exclusively), resource management (like anything your OS does -- which again is a whole lot more than you think, or the C memory manager, or the call stack, for examples), advanced mathematical applications (polynomials, matrices, solvers, etc), uh, compilers use them, AIs use them, games use them, ...
I haven't read many other people code and I've only found it once in the box2d body class. |
Stick with trivial tasks and sure, you can argue you'll never need a linked list (even if you're using one underneath without even knowing it).
Many has claim that linked list is a bad data structure... but beginner wouldn't know that. |
I've been doing this for nearly 30 years, and I've
never seen anyone who knows what they're doing claim that a linked list is a 'bad' data structure. (I've seen people recommend a
different data structure, based on requirements, but that's not the same thing.)
began searching then I stumble upon a lot of prove saying linked list is bad for performance. |
What people say has nothing to do with proving anything.
Element access in a linked list is O(n), compared to an array's O(1). But this only counts if you have a 1:1 integer key lookup.
Why wasn't it mentioned in intro of data structure that linked list is bad for performance ? |
I can't answer for the quality of instruction you have received -- or lack of it, apparently.