TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Eytzinger Binary Search

31 pointsby mauabout 4 years ago

2 comments

EdSchoutenabout 4 years ago
Another interesting way of encoding lists to have good locality is to use the Van Emde Boas layout.<p><a href="https:&#x2F;&#x2F;www.cs.au.dk&#x2F;~gerth&#x2F;papers&#x2F;soda02.pdf" rel="nofollow">https:&#x2F;&#x2F;www.cs.au.dk&#x2F;~gerth&#x2F;papers&#x2F;soda02.pdf</a>
torstenvlabout 4 years ago
I tried to make sense of this, but had a really hard time. Most of the code has bugs (where does the magic a[] come from? what the hell is n? oh it&#x27;s supposed to be a.length?) and the concepts are not well thought out.<p>I can tell there&#x27;s good substance inside, once you&#x27;re can crack the nut, but this reads more like the author was trying to jot down a rough sketch of what was in his mind, rather than allow the readers to construct the same ideas and relationships in theirs.