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.

The Ubiquitous B-Tree (1979) [pdf]

66 pointsby robinson_kalmost 10 years ago

4 comments

craigchingalmost 10 years ago
Both times before this was posted it garnered 0 comments:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4317545" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4317545</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7243568" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7243568</a><p>When I read this I immediately recognized it as a PDF that I have in GoodReader (where I store all my technical PDFs). So I&#x27;m curious if it will start a good conversation about b-trees this time :)<p>To get the conversation started, a couple of years ago, I decided to write a b-tree data structure to refresh my skills a bit. I wrote it in C since I&#x27;ve been doing a lot of Java the last 10 years or so. I only got as far as an in-memory b-tree and had started working on getting it stored to disk before I abandoned the project (think I was working on it during Christmas holidays and the holiday ended).<p>I subsequently read that in-memory b-trees can actually outperform other tree data structures like rb-trees due to cache coherency. I never bothered to performance test my b-tree vs. an rb-tree I also wrote for fun.<p>Anyway, that&#x27;s my story about b-trees!
评论 #9809727 未加载
评论 #9810915 未加载
评论 #9810454 未加载
flgralmost 10 years ago
If you are interested in an overview of B-Trees, similar data structures, and how well they work on modern hardware, you may also find the survey bit of my master thesis interesting:<p>See here: <a href="https:&#x2F;&#x2F;www.researchgate.net&#x2F;profile&#x2F;Florian_Gross&#x2F;publicati.." rel="nofollow">https:&#x2F;&#x2F;www.researchgate.net&#x2F;profile&#x2F;Florian_Gross&#x2F;publicati...</a>.<p>Along those lines:<p>* CSS Trees: Pointerless b-Trees with a layout optimized for cache lines (<a href="http:&#x2F;&#x2F;www.vldb.org&#x2F;conf&#x2F;1999&#x2F;P7.pdf" rel="nofollow">http:&#x2F;&#x2F;www.vldb.org&#x2F;conf&#x2F;1999&#x2F;P7.pdf</a>)<p>* Intel &amp; Oracle&#x27;s fast architecture-sensitive tree search (combines huge pages, cache line blocking, and SIMD in an optimal layout): <a href="http:&#x2F;&#x2F;www.researchgate.net&#x2F;profile&#x2F;Jatin_Chhugani&#x2F;publication&#x2F;221213860_FAST_fast_architecture_sensitive_tree_search_on_modern_CPUs_and_GPUs&#x2F;links&#x2F;0c96051f5d2990770d000000.pdf" rel="nofollow">http:&#x2F;&#x2F;www.researchgate.net&#x2F;profile&#x2F;Jatin_Chhugani&#x2F;publicati...</a><p>* Adaptive radix trees (<a href="http:&#x2F;&#x2F;codematch.muehe.org&#x2F;~leis&#x2F;papers&#x2F;ART.pdf" rel="nofollow">http:&#x2F;&#x2F;codematch.muehe.org&#x2F;~leis&#x2F;papers&#x2F;ART.pdf</a>)
tomcamalmost 10 years ago
A lucid, enjoyable paper that allowed me to write a very fast B-Tree implementation in nascent ANSI C back in the day. Comer&#x27;s books always struck just the right balance between scholarly completeness and clarity, at least to me.
rizzinalmost 10 years ago
Why does the root have only two children and not d, like every other non-leaf node?
评论 #9810347 未加载
评论 #9810332 未加载