From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Questions concerning "Simple Components"
Date: Wed, 4 Nov 2015 10:33:41 +0200
Date: 2015-11-04T10:33:41+02:00 [thread overview]
Message-ID: <d9tu72F86b7U1@mid.individual.net> (raw)
In-Reply-To: <59c99dce-9cc6-4aba-9c5e-a5dd22ef7fea@googlegroups.com>
On 15-11-04 04:16 , Jeremiah wrote:
> I really like a lot of the items found in the Simple Components
> library, but had a few questions on their usage. Specifically:
>
> Generic_B_Trees have a generic package parameter "Width" which has
> the following description from the website: "Width is the size of the
> bucket of key-value pairs allocated per tree node;"
>
> This doesn't make a lot of sense to me. I'm sure I am just missing
> something simple, but what is the "bucket" being referenced? Is it
> terminology for how many key value pairs can be created before more
> memory has to be allocated? The "per tree node" part also throws me
> off a little bit because on a binary tree, I would expect only one
> key/value pair per node.
B-trees are _not_ generally binary trees; the branching factor is
typically much larger than 2. See https://en.wikipedia.org/wiki/B-tree.
I'm not familiar with the Simple Components, but the description of
"Width" sounds as if it sets the maximum number of key-and-value pairs
that can be stored in one leaf node of the B-tree. The internal nodes
also have multiple keys per node, but the corresponding values are
pointers to child nodes, so perhaps there is a different parameter to
set the number of key-and-pointer pairs in internal nodes.
Hopefully Dmitry will follow with a better explanation...
--
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
. @ .
next prev parent reply other threads:[~2015-11-04 8:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 2:16 Questions concerning "Simple Components" Jeremiah
2015-11-04 8:33 ` Niklas Holsti [this message]
2015-11-04 9:09 ` Dmitry A. Kazakov
2015-11-04 12:39 ` Jeremiah
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox