File: index.rst

package info (click to toggle)
mdds 3.2.0-5
  • links: PTS
  • area: main
  • in suites: sid
  • size: 6,372 kB
  • sloc: cpp: 21,777; sh: 1,369; makefile: 692; python: 602
file content (25 lines) | stat: -rw-r--r-- 738 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.. SPDX-FileCopyrightText: 2025 Kohei Yoshida
..
.. SPDX-License-Identifier: MIT

.. highlight:: cpp

Segment Tree
============

`Segment tree <https://en.wikipedia.org/wiki/Segment_tree>`_ is a data structure
designed for storing one-dimensional intervals or segments, either overlapping
or non-overlapping.  It is useful for detecting all the segments that contain a
specific point.  Each segment has start and end positions where the start
position is inclusive while the end position is not.  The version of segment
tree implemented in mdds allows associating a value with each segment so that
you can use it as an associative container.

.. toctree::
   :maxdepth: 1

   quickstart.rst
   remove-segments.rst
   perf.rst
   api.rst