Beruflich Dokumente
Kultur Dokumente
K, Molad, Tarjan
3 2 1 IP address
block
Forward to Interface A
Forward to Interface B
Forward to Interface A
190.1.*.* Forward to
Interface B
IP address
Extension to 2D
Query = point in R2
(Sender IP, receiver IP)
9 7
9
7 1
Nested Intervals
4 5 2 2 9 7 1
Containment tree:
2 2
7
9 5 4
Nested Intervals
4 5 2 2 9 7 1
Query:
7
9 5 4
Starting node s = smallest interval containing the 2 query point Relevant priorities are on the path from s to the root. Problem: path may be long
7
2 9 5 4
Problem:
Insert
Binarization
4 5 2 2 9 7 1
7
9 5
9 5
Leftmost child of v => Left child of v Any other child of v => right child of its left sibling Adjust costs: Left edge => priority of parent Right edge =>
Insert (Cont.)
Summary
Containment tree C
Query = min cost on path from starting point to root
Represent C by binarized version B Represent B by dynamic tree D How do you find the point to start the query ? How do you find the edges to cut ?
7
9
Min(Mincost(
), pri(
))
query (cont)
4 2 2 9 7 5 1
7
9
Mincost(