Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
169 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
45 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

A Simple and Space Efficient Segment Tree Implementation (1807.05356v1)

Published 14 Jul 2018 in cs.DS

Abstract: 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.

Citations (5)

Summary

We haven't generated a summary for this paper yet.