Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Before finally the "Why wouldn't you use skip lists?" and that classic answer.

That answer was a non-answer, though. Saying "You pick the best structure for the data" doesn't answer the question "Why would you not use a skiplist".

A few reasons, off the top of my head:

1. Size of the list structures can get gigantic, especially as the total size of the list increases. This is especially true with 64-bit pointers, and small data(ASCII names, integers, etc.).

2. While the list is very good(O(log n) ) for searches, additions and deletions can be problematic, especially if they're more common than lookups.

3. Depending on the implementation/language, it might be a good idea to pre-allocate the pointer array. Increasing the list size above the supported pointer array size can be a major headache.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: