A Simple and Space Efficient Segment Tree Implementation

07/14/2018
by   Lei Wang, et al.
0

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 ,...,I_n} of n intervals can be insert into or delete from the heap based segment tree in O( n) time. All the primary computational geometry problems can be solved efficiently.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/07/2020

Zipping Segment Trees

Stabbing queries in sets of intervals are usually answered using segment...
research
12/30/2018

Joint Overlap Analysis of Multiple Genomic Interval Sets

Next-generation sequencing (NGS) technologies have produced large volume...
research
06/04/2018

Efficient Genomic Interval Queries Using Augmented Range Trees

Efficient large-scale annotation of genomic intervals is essential for p...
research
11/03/2018

Multidimensional segment trees can do range queries and updates in logarithmic time

Updating and querying on a range is a classical algorithmic problem with...
research
01/24/2021

Longest segment of balanced parentheses – an exercise in program inversion in a segment problem (Functional Pearl)

Given a string of parentheses, the task is to find a longest consecutive...
research
03/23/2018

Parallel Range, Segment and Rectangle Queries with Augmented Maps

The range, segment and rectangle query problems are fundamental problems...
research
03/23/2018

Parallel Range and Segment Queries with Augmented Maps

The range and segment query problems are fundamental problems in computa...

Please sign up or login with your details

Forgot password? Click here to reset