首页> 外文期刊>C - C++ Users Journal >Implementing Splay Trees In C++
【24h】

Implementing Splay Trees In C++

机译:在C ++中实现Splay树

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Splay trees are self-adjusting binary search trees. If the set of frequently accessed elements is a small subset of the elements in the tree, splay trees perform better than other search trees. Splay trees are typically used in the implementation of caches, memory allocators, routers, garbage collectors, data compression, and ropes (replacement of string used for long text strings). Additionally, I've used splay trees as the internal representation of associative container classes with the same interface as the associative containers in the C++ Standard Library. The implementation I present in this article is a plug-in replacement for the standard associative containers, the only difference being performance characteristics.
机译:Splay树是自调整的二进制搜索树。如果频繁访问的元素集是树中元素的一小部分,则展开树的性能要优于其他搜索树。 Splay树通常用于实现高速缓存,内存分配器,路由器,垃圾收集器,数据压缩和绳索(用于替换长文本字符串的字符串)。另外,我使用了Splay树作为关联容器类的内部表示形式,其接口与C ++标准库中的关联容器相同。我在本文中介绍的实现是标准关联容器的插件替代,唯一的区别是性能特征。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号