Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Hop lists (dekorte.com)
4 points by epe on Jan 9, 2009 | hide | past | favorite | 1 comment


At a glance, I'm pretty sure this doesn't work. The average jump is not to the bisection between the current node and the node you're seeking, it's to the bisection between the current node and the end of the list. As you get closer to the node you seek, the probability gets higher and higher that the skip link points past the node you seek, in which case it does nothing for you and you continue sequentially searching. I haven't done the math, but I think the expected search is O(n) - though possibly faster in practice than a simple sequential search.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: