arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01603cs.DS
收藏

Southwest Tree:一种用于非交换可逆操作部分累加的低内存数据结构

Southwest Tree: A Low-Memory Data Structure for Partial Accumulations by Non-Commutative Invertible Operations

Nicholas J. C. Papadopoulos

AI总结:

针对列表部分累加与更新任务中线段树内存高、二叉索引树不支持非交换操作的问题,提出Southwest Tree数据结构,实现O(log₂N)时间复杂度且无需额外内存,支持非交换可逆累加操作。

摘要:

在计算机科学的各类应用中,累加值列表的一部分(列表值可随时更新)的任务被广泛使用。无约束完成该任务很简单,但简单方案常牺牲累加或更新的时间复杂度,一个为常数时间另一个为线性时间。为平衡复杂度,两种知名数据结构——线段树(Segment Tree)和二叉索引树(Binary Indexed Tree)被用于该任务,对含N个元素的列表,两者能以O(log₂N)时间执行这两个任务。然而线段树需辅助内存存储额外值,二叉索引树无法处理非交换累加操作。本文提出Southwest Tree数据结构,能以O(log₂N)时间完成非交换可逆累加操作的部分累加和更新任务,且除初始输入数组外无需额外内存存储结构。

英文摘要:

The task of accumulating a portion of a list of values, whose values may be updated at any time, is widely used throughout various applications in computer science. While it is trivial to accomplish this task without any constraints, trivial solutions often sacrifice time complexity in either accumulating or updating the values, one being constant time and the other being linear. To even out the complexity, two well-known data structures have been used to accomplish this task, namely the Segment Tree and the Binary Indexed Tree, which are able to carry out both tasks in O(log_2 N) time for a list of N elements. However, the Segment Tree suffers from requiring auxiliary memory to contain additional values, while the Binary Indexed Tree is unable to handle non-commutative accumulation operations. Here, we present a data structure, called the Southwest Tree, that accomplishes these tasks for non-commutative, invertible accumulation operations in O(log_2 N) time and uses no additional memory to store the structure apart from the initial input array.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑