lec35 - Priority Search Trees Keys are distinct ordered...

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

View Full Document Right Arrow Icon
Priority Search Trees Keys are distinct ordered pairs (x i , y i ) . Basic operations. get(x,y) … return element whose key is (x , y) . delete(x,y) … delete and return element whose key is (x,y) . insert(x,y,e) … insert element e , whose key is (x , y) . Rectangle operations.
Background image of page 1

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

View Full DocumentRight Arrow Icon
minXinRectangle(x L ,x R ,y T ) Return element with min x -coordinate in the rectangle defined by the lines, x= x L , x= x R , y = 0 , y = y T , x L <= x R , 0 <= y T . I.e., return element with min x such that x L <= x <= x R and 0 <= y <= y T . x L x R y T
Background image of page 2
maxXinRectangle(x L ,x R ,y T ) Return element with max x -coordinate in the rectangle defined by the lines, x= x L , x= x R , y = 0 , y = y T , x L <= x R , 0 <= y T . I.e., return element with max x such that x L <= x <= x R and 0 <= y <= y T . x L x R y T
Background image of page 3

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

View Full DocumentRight Arrow Icon
minYinXrange(x L ,x R ) Return element with min y -coordinate in the rectangle defined by the lines, x= x L , x= x R , y = 0 , y = infinity , x L <= x R . I.e., return element with min y such that x L <= x <= x R . x L x R
Background image of page 4
L ,x R ,y T ) Return all elements in the rectangle defined by the lines, x= x L , x= x R , y = 0 , y = y T , x L <= x R , 0 <= y T .
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 / 27

lec35 - Priority Search Trees Keys are distinct ordered...

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