Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-gvh9x Total loading time: 0 Render date: 2024-07-19T20:25:20.138Z Has data issue: false hasContentIssue false

4 - Tree Structures for Sets of Intervals

Published online by Cambridge University Press:  25 January 2011

Peter Brass
Affiliation:
City College, City University of New York
Get access

Summary

The importance of balanced search trees does not come primarily from the importance as dictionary structures – they are just the most basic application. Balanced search trees provide a scaffolding on which many other useful structures can be built. These other structures can then take advantage of the logarithmic depth and the mechanisms that preserve it, without going into the details of studying the underlying search-tree balancing methods. In this chapter we describe several structures that are built on top of a balanced search tree and that implement different queries or even an entirely different abstract structure.

Interval Trees

The interval tree structure stores a set of intervals and returns for any query key all the intervals that contain this query value. The structure is in a way dual to the one-dimensional range queries we mentioned in Section 2.7: they keep track of a set of values and return for a given query interval all key values in that interval, whereas we now have a set of intervals as data and a key value as query. In both cases the answer can be potentially large, so we have to aim for an output-sensitive complexity bound. Interval trees were invented by Edelsbrunner and McCreight.

The idea of the interval tree structure is simple. Suppose the underlying set of intervals is the set {[a1, b1], [a2, b2], …, [an, bn]}. Let T be any balanced search tree for the set of interval endpoints {a1, a2, …, an, b1, …, bn}.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2008

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×