|
|
|
|
|
by PotatoPancakes
1416 days ago
|
|
> I remain unconvinced that skiplists cannot be better replaced in most cases with a good hash table/dictionary implementation. Skiplists are ordered. Perhaps without much advantage compared to, say, a balanced BST. But Hash tables aren't ordered, so they aren't as good for storing data when preserving order is important. > Also, most linked lists should actually be deques. Yep, for almost all purposes, so long as using the extra memory for the reverse pointers isn't an issue. Deques are more flexible and much easier to work with (and especially to debug) than singly-linked lists. Not much of a take, I think a large proportion of developers would vehemently agree with you there. |
|