|
|
|
|
|
by wavemode
760 days ago
|
|
> Instead of thinking of a linked list structurally, think of it functionally If your argument is that a linked-list-like data structure can be implemented using something other than a linked list, then I agree with you. Vector tries (for example) are great for that use case. But a vector trie isn't a linked list, it's a vector trie. As such, it will be faster for some usage patterns, equal for some, and completely degenerate for some others. Just like any other data structure that isn't a linked list. It wouldn't really be an "optimization" to implement my linked list code with something other than a linked list - it would be rewriting my code. |
|