首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > cpp-btree

cpp-btree

  • 资源大小:40.45 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

C++ B-tree is a template library that implements ordered in-memory containers based on a B-tree data structure. Similar to the STL map, set, multimap, and multiset templates, this library provides btree_map, btree_set, btree_multimap, and btree_multiset. C++ B-tree containers have a few advantages compared with the standard containers, which are typically implemented using Red-Black trees. Nodes in a Red-Black tree require three pointers per entry (plus 1 bit), whereas B-trees on average make use of fewer than one pointer per entry, leading to significant memory savings. For example, a set has an overhead of 16 bytes for every 4 byte set element (on a 32-bit operating system); the corresponding btree_set has an overhead of around 1 byte per set element. B-trees are widely known as data structures for secondary storage, because they keep disk seeks to a minimum. For an in-memory data structure,

文 件 列 表

cpp-btree-1.0.1
btree.h
btree_bench.cc
btree_container.h
btree_map.h
btree_set.h
btree_test.cc
btree_test.h
btree_test_flags.cc
CMakeLists.txt
COPYING
Makefile
README
safe_btree.h
safe_btree_map.h
safe_btree_set.h
safe_btree_test.cc
VIP VIP
0.185679s