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

一种简单且节省空间的段树实现

A Simple and Space Efficient Segment Tree Implementation

Lei Wang, Xiaodong Wang

摘要:

段树是一种非常通用的数据结构。本文提出了一种新的基于堆的段树实现方法。在这种分段树的实现中,可以完全去除与树节点相关联的结构信息。一些主要的计算几何问题,如刺计数查询,测量的联合区间,最大团大小的区间被用来证明新的基于堆的段树实现的效率。$n$间隔的集合$S=\{I_1 ,I_2 ,\cdots,I_n\}$中的每个间隔可以在$O(\log n)$时间内插入到基于堆的段树中或从基于堆的段树中删除。所有的基本计算几何问题都可以有效地解决。

英文摘要:

The segment tree is an extremely versatile data structure. In this paper, a new heap based implementation of segment trees is proposed. In such an implementation of segment tree, the structural information associated with the tree nodes can be removed completely. Some primary computational geometry problems such as stabbing counting queries, measure of union of intervals, and maximum clique size of Intervals are used to demonstrate the efficiency of the new heap based segment tree implementation. Each interval in a set $S=\{I_1 ,I_2 ,\cdots,I_n\}$ of $n$ intervals can be insert into or delete from the heap based segment tree in $O(\log n)$ time. All the primary computational geometry problems can be solved efficiently.

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

↑