RRB-Trees: Efficient Immutable Vectors
RRB-Trees: Efficient Immutable Vectors
复制标题
RRB-Trees:高效的不可变向量
DOI:
--
复制
发表时间:
2011
期刊:
影响因子:
--
通讯作者:
Tiark Rompf
中科院分区:
文献类型:
--
作者:
P. Bagwell;Tiark Rompf
Immutable vectors are a convenient data structure for functional programming and part of the standard library of modern languages like Clojure and Scala. The common implementation is based on wide trees with a fixed number of children per node, which allows fast indexed lookup and update operations. In this paper we extend the vector data type with a new underlying data structure, Relaxed Radix Balanced Trees (RRB-Trees), and show how this structure allows immutable vector concatenation, insert-at and splits in O(log N) time while maintaining the index, update and iteration speeds of the original vector data structure.