Cargando…
A simple and space efficient segment tree implementation
The segment tree is an extremely versatile data structure. In this paper, a new array 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...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Elsevier
2019
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6461578/ https://www.ncbi.nlm.nih.gov/pubmed/31011542 http://dx.doi.org/10.1016/j.mex.2019.02.028 |
_version_ | 1783410499621224448 |
---|---|
author | Wang, Lei Wang, Xiaodong |
author_facet | Wang, Lei Wang, Xiaodong |
author_sort | Wang, Lei |
collection | PubMed |
description | The segment tree is an extremely versatile data structure. In this paper, a new array 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 array 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(log n) time. All the primary computational geometry problems can be solved efficiently. |
format | Online Article Text |
id | pubmed-6461578 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2019 |
publisher | Elsevier |
record_format | MEDLINE/PubMed |
spelling | pubmed-64615782019-04-22 A simple and space efficient segment tree implementation Wang, Lei Wang, Xiaodong MethodsX Computer Science The segment tree is an extremely versatile data structure. In this paper, a new array 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 array 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(log n) time. All the primary computational geometry problems can be solved efficiently. Elsevier 2019-03-02 /pmc/articles/PMC6461578/ /pubmed/31011542 http://dx.doi.org/10.1016/j.mex.2019.02.028 Text en © 2019 The Authors http://creativecommons.org/licenses/by/4.0/ This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Computer Science Wang, Lei Wang, Xiaodong A simple and space efficient segment tree implementation |
title | A simple and space efficient segment tree implementation |
title_full | A simple and space efficient segment tree implementation |
title_fullStr | A simple and space efficient segment tree implementation |
title_full_unstemmed | A simple and space efficient segment tree implementation |
title_short | A simple and space efficient segment tree implementation |
title_sort | simple and space efficient segment tree implementation |
topic | Computer Science |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6461578/ https://www.ncbi.nlm.nih.gov/pubmed/31011542 http://dx.doi.org/10.1016/j.mex.2019.02.028 |
work_keys_str_mv | AT wanglei asimpleandspaceefficientsegmenttreeimplementation AT wangxiaodong asimpleandspaceefficientsegmenttreeimplementation AT wanglei simpleandspaceefficientsegmenttreeimplementation AT wangxiaodong simpleandspaceefficientsegmenttreeimplementation |