CMPUT 498 Orthogonal Range Searching - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

CMPUT 498 Orthogonal Range Searching

Description:

Solution using arrays is not dynamic and does not generalise to higher dimensions ... Split node is the node at which the search paths bifurcate. 5. 6. Discussion ... – PowerPoint PPT presentation

Number of Views:69
Avg rating:3.0/5.0
Slides: 20
Provided by: csUal
Category:

less

Transcript and Presenter's Notes

Title: CMPUT 498 Orthogonal Range Searching


1
CMPUT 498Orthogonal Range Searching
  • Lecturer Sherif Ghali
  • Department of Computing Science
  • University of Alberta

2
Database queries
a geometric view of database queries
3
1-Dimensional range searching
  • Given a set of real numbers, report the points
    inside an interval
  • Solution using arrays is not dynamic and does not
    generalise to higher dimensions
  • Store in a balanced binary tree
  • leaves given numbers
  • interior splitting value largest value in left
    subtree

4
1-Dimensional range searching
  • keys
  • light grey search paths
  • dark grey points in search interval
  • Split node is the node at which the search paths
    bifurcate

5
(No Transcript)
6
Discussion
  • Can this algorithm output a point not in the
    interval?
  • Can a point in the interval not be reported?
  • Time and space?
  • Notion of output sensitivity
  • n number of points
  • k number of points in interval
  • time is in O(k log n)

7
2-Dimensional range searching
  • report points in a rectangle
  • assume points are in general position

8
kd-tree
  • leaf nodes input points
  • interior nodes splitting lines

9
line l
10
Correspondencebetween data structure and point
set
11
Query rectangle
12
Searching in a k-d tree
13
Recurrence
14
Data structures seen so far
  • Convex hull arrays
  • Segment intersection
  • priority queue
  • balanced binary tree
  • (DCEL)
  • Voronoi diagram
  • ibid.
  • Delaunay triangulation
  • Udirected graph
  • Directed Acyclic Graph (DAG)
  • Binary Space Partitioning
  • Binary tree (OO classes?)
  • k-d trees
  • Balanced binary search tree

15
Single vs. multi-level data structures
16
(No Transcript)
17
Storage space
  • What is the total storage cost?
  • How many times is a single point stored?

18
  • Query time?
  • O(log2 n k)

19
(No Transcript)
20
(No Transcript)
21
Reference
Chap. 5
Write a Comment
User Comments (0)
About PowerShow.com