lec37 - Multidimensional Range Search Static collection of...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Multidimensional Range Search Static collection of records. No inserts, deletes, changes. Only queries. Each record has k key fields. Multidimensional query. Given k ranges [ l i , u i ] , 1 <= i <= k . Report all records in collection such that l i <= k i <= u i , 1 <= i <= k .
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Multidimensional Range Search All employees whose age is between 30 and 40 and whose salary is between $40K and $70K . All cities with an annual rainfall between 40 and 60 inches, population between 100K and 200K , average temperature >= 70F , and number of horses between 1025 and 2500 .
Background image of page 2
Data Structures For Range Search Unordered sequential list. Sorted tables. k tables. Table i is sorted by i ’th key. Cells. k -d trees. Range trees. k -fold trees. k -ranges.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Performance Measures P(n,k) . Preprocessing time to construct search structure for n records, each has k key fields. For many applications, this time needs only to be reasonable. S(n,k) . Total space needed by the search structure. Q(n,k) . Time needed to answer a query.
Background image of page 4
k-d Tree Binary tree. At each node of tree, pick a key field to partition records in that subtree into two approximately equal groups. Pick field i with max spread in values. Select median key value,
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 29

lec37 - Multidimensional Range Search Static collection of...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online