3 ms·
I actually got that exact question once, or pretty close to it. I'm paraphrasing, but the question was "Hash tables are cool, but what's a data structure they
by tombert 8y ago
I actually got that exact question once, or pretty close to it. I'm paraphrasing, but the question was "Hash tables are cool, but what's a data structure they might use in a DB besides that?". This was pretty early in my career, so it stumped me, and he pointed out that a binary tree is used semi-often because of ordering.
- pedrosorio 8y agoI am surprised B-trees were not the first data structure in that discussion, as they are "famous" for being used in DBs. Although these days one should talk about "learned index structures" instead, I guess :)