DOC PREVIEW
USC CSCI 599 - afsin

This preview shows page 1-2 out of 5 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

9/28/20091Continuous Nearest Neighbor Monitoring in Road NetworksK. Mouratidis1M.L. Yiu2, D. Papadias3, N. Mamoulis2Afsin AkdoganUniversity of Southern CaliforniaComputer Science Department1CS 599 - Geospatial Information ManagementIntroductionThe k-NN problem: Given a query point q and a set of objectsP,findthek objects in P that are closest to q.p4p32qp1p2p6p5p7CS 599 ‐ Geospatial Information ManagementIntroductionExisting methods are designed for Euclidean spaces.Consider a road network (where edge weights correspondto their length, or travel time). Queries and objects move inthe network.N2N3Network distance: the length (i.e., sum of weights) of theshortest path connecting them. (Example: taxi – pedestrians)3N1Network distance between [N1,N3] = [N1,N2] + [N2,N3] CS 599 ‐ Geospatial Information ManagementIntroductionContinuous NN monitoring in a Road Network:Queries and objects move in an unpredictable manner in thenetwork, issuing an update whenever they moveNetworkedges issue weight updatesCentral server processes the stream of updates, andcontinuously reports the k NNs of each query accordingto network distanceSample query:4CS 599 ‐ Geospatial Information ManagementSample Querypedestrian: query and taxis: data objects.- show me 2 closest taxis”CS 599 ‐ Geospatial Information Management5Objects and queries move in an unpredictable manner to different directions with different speeds.Related WorkEuclidean NN monitoring: Yu et al. ICDE’05, Xiong et al.ICDE’05, Mouratidis et al. SIGMOD’05YPK-CNN, SEA-CNN and CPM algorithms- Search in the cells around query- Grid index: cannot capture network-imposed constraintsCircles/rectangles:nomappingtonetworkdistancespace-Circles/rectangles:nomappingtonetworkdistancespace- Do not deal with edge updatesSnapshot NN in road networks: e.g., Papadias et al.VLDB’03, Kolahdouzan and Shahabi VLDB’04- Static data objects, One-time results6CS 599 ‐ Geospatial Information Management9/28/20092Incremental Monitoring (IMA) and Group Monitoring (GMA) AlgorithmsTwo methods (IMA, GMA) for: monitoring NNs according tonetwork distance, with low CPU cost.Edges: indexed with a quad-tree.ShdihStore eachedge with(i)the objects in it(ii)an influence listQueries: For each query we store its current NNs, and itsexpansion tree. (Memory consumption)7CS 599 ‐ Geospatial Information ManagementIMA: Initial NN computationInitial result (k=3): expansion tree, infl. intervals,andmarksq.kNN_dist = 7n3= 9An edge e affects q, if it contains an interval where the network dist is less than q.k-NNParts until marks are valid.q.kNN_dist = The network distance of furthest NN from qq= root. Retrieves kNNs with Dijkstra algorithmStore q in influence lists of affecting edgesTerminates when the next node has weight larger than q.kNN_dist8CS 599 ‐ Geospatial Information ManagementTypes of Object UpdatesOnly updates affecting the expansion tree can alter the result! (p5 not)(i) Current NNs moving within distance q.kNN_dist from q (e.g., p3)(ii) Incoming object: used to lie further than q.kNN_dist but their new location is closer to q than q.kNN_dist (e.g., p4)(iii) Outgoing object: current NNs moving further away than q.kNN_dist from q (e.g., p1)9CS 599 ‐ Geospatial Information ManagementIMA: Object updates (Case 1)Outgoing no more than incoming NNs:10At least k objects within distance q.kNN_distRemove outgoing NNs (p1)Calculate union of remaining NNs and incoming objects ((p3’,p2) U p4’)Report best k among themIn brief: update result and shrink expansion treeCS 599 ‐ Geospatial Information ManagementIMA: Object updates (Case 1)New (shrunk) expansion treeNew q.kNN_dist11CS 599 ‐ Geospatial Information ManagementIMA: Object updates (Case 2)More outgoing than incoming:Fewer k objects within distance q.kNNNotice: q.Tree grows according to the new q.kNN_dist !12In brief: re-compute from marks (not from q. it speeds things up) and expand treeCS 599 ‐ Geospatial Information Management9/28/20093IMA: Object updates (Case 2)New (grown) expansion treeNew q.kNN_dist13CS 599 ‐ Geospatial Information ManagementIMA: Query updatesRe-compute starting from valid tree marksValid expansion treen5 is reachable via a shorter path14Sub‐tree q’ remains valid and NNs as well. They are just subject to some trivial distance updates. The rest of the tree is discardedCS 599 ‐ Geospatial Information ManagementIMA: Edge updates - Weight increaseThere might exist shorter alternatives paths to objects in sub‐treen9 is reachable via shorter pathInvalid expansion tree15Updated Edge with higher weightCS 599 ‐ Geospatial Information ManagementIMA: Edge updates - Weight decreaseValid because all nodes therein become shorter by 2 unitsNewMarksUpdated Edgeold=3new=116QUESTION: Why did we set the new marks?Marks show valid parts. The update can NOT affect the paths to nodes/objects that lie closer than d(n7,q)=3, because any path passing through n1n7 has length at least d(n7,q)NewMarksold3new1CS 599 ‐ Geospatial Information ManagementGMA: Main ideaIntersection node: degree above 2 (e.g., n1, n2, n5)Terminal node: degree 1 (e.g., n8, n9, n4, n3)Sequence: path between consecutive intersection or terminal nodes{n1n8},{n1n7,n7n6,n6n5},{n2n5}…Lemma 1: The k-NN set of any query in sequence s is in theunion of (i) the objects in s, (ii) the k-NNs of its intersectionnodes (endpoints).17CS 599 ‐ Geospatial Information ManagementGMA: Main idea (example)Main ideaGMA groups together the queries falling in the same sequence and monitors static nodes (at the endpoints of the sequence), instead of each Objects on sequence between n1and n5={p4, p5}2-NNs of intersection n1={p1, p5}2-NNs of intersection n5={p3, p2}2-NNs of q1or q2 ∈ {p4, p5} ∪ {p1, p5} ∪ {p3, p2}n.k = the max number of NNs required by any query in n.Q18query individuallyCS 599 ‐ Geospatial Information Management9/28/20094GMA: Active nodesactive node: a node n is active if n is the endpoint on anysequence that has at least 1 query (e.g., n1, n5)GMA monitors the k-NNs of active nodes (using IMA), andusesthemtocomputetheNNsoftheactualuserqueriesusesthemtocomputetheNNsoftheactualuserqueriesGMA reduces CPU time by(i) shared execution among queries in the same sequence(ii) reduction from NN monitoring of moving queries to NNmonitoring of static active nodes.19CS 599 ‐ Geospatial Information ManagementGMA: Initial Result (2NN of q1)Mark for q1201. First Consider edge n1n7and add {p5} to q1.NN list2. Among the 2


View Full Document

USC CSCI 599 - afsin

Documents in this Course
Week8_1

Week8_1

22 pages

Week2_b

Week2_b

10 pages

LECT6BW

LECT6BW

20 pages

LECT6BW

LECT6BW

20 pages

5

5

44 pages

12

12

15 pages

16

16

20 pages

Nima

Nima

8 pages

Week1

Week1

38 pages

Week11_c

Week11_c

30 pages

October5b

October5b

43 pages

Week11_2

Week11_2

20 pages

final

final

2 pages

c-4

c-4

12 pages

0420

0420

3 pages

Week9_b

Week9_b

20 pages

S7Kriegel

S7Kriegel

21 pages

Week4_2

Week4_2

16 pages

sandpres

sandpres

21 pages

Week6_1

Week6_1

20 pages

4

4

33 pages

Week10_c

Week10_c

13 pages

fft

fft

18 pages

LECT7BW

LECT7BW

19 pages

24

24

15 pages

14

14

35 pages

Week9_c

Week9_c

24 pages

Week11_67

Week11_67

22 pages

Week1

Week1

37 pages

LECT3BW

LECT3BW

28 pages

Week8_c2

Week8_c2

19 pages

Week5_1

Week5_1

19 pages

LECT5BW

LECT5BW

24 pages

Week10_b

Week10_b

16 pages

Week11_1

Week11_1

43 pages

Week7_2

Week7_2

15 pages

Week5_b

Week5_b

19 pages

Week11_a

Week11_a

29 pages

LECT14BW

LECT14BW

24 pages

T7kriegel

T7kriegel

21 pages

0413

0413

2 pages

3

3

23 pages

C2-TSE

C2-TSE

16 pages

10_19_99

10_19_99

12 pages

s1and2-v2

s1and2-v2

37 pages

Week10_3

Week10_3

23 pages

jalal

jalal

6 pages

1

1

25 pages

T3Querys

T3Querys

47 pages

CS17

CS17

15 pages

porkaew

porkaew

20 pages

LECT4BW

LECT4BW

21 pages

Week10_1

Week10_1

25 pages

wavelet

wavelet

17 pages

October5a

October5a

22 pages

p289-korn

p289-korn

12 pages

2

2

33 pages

rose

rose

36 pages

9_7_99

9_7_99

18 pages

Week10_2

Week10_2

28 pages

Week7_3

Week7_3

37 pages

Load more
Download afsin
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view afsin and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view afsin 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?