A Unified Algorithm for Continuous Monitoring of Spatial Queries
-
Upload
zachery-cruz -
Category
Documents
-
view
25 -
download
0
description
Transcript of A Unified Algorithm for Continuous Monitoring of Spatial Queries
![Page 1: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/1.jpg)
A Unified Algorithm for Continuous Monitoring of Spatial Queries
Presented by: Muhammad Aamir Cheema
Joint work withMahady Hasan, Xuemin Lin, Wenjie Zhang
University of New South Wales, Australia
![Page 2: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/2.jpg)
Presented by: Muhammad Aamir Cheema2
Introduction
• No existing unified algorithm
• Our unified algorithm– answers a broad class of spatial queries– for each query, we only need to change the
scoring function
![Page 3: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/3.jpg)
Presented by: Muhammad Aamir Cheema3
Problem definition
Versatile scoring function• Let f(p) be a function that returns the score of a point p• Upper bound score of a rectangle R is
• Lower bound score is
• The function f( ) is called versatile iff SU(R) ≥ SU (Rc) and SL(R) ≤ SL (Rc) for every R and its child rectangle Rc
R
Rc
q
f(p) = dist(p,q)
p
f(p) = - dist(p,q)
![Page 4: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/4.jpg)
Presented by: Muhammad Aamir Cheema4
Problem definition
Versatile top-k query• Return k objects with smallest scores
Continuous versatile top-k query• Continuously report top-k objects as the
dataset changes
R
Rc
q
f(p) = dist(p,q)
p
![Page 5: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/5.jpg)
Presented by: Muhammad Aamir Cheema5
Related Work
k Nearest Neighbors queryReturn k objects closest to the query point– SEA-CNN [ICDE05]– YPK [ICDE05]– CPM [SIGMOD05]– CircularTrip [DASFAA 07]– iSEE [SSDBM 07]
![Page 6: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/6.jpg)
Presented by: Muhammad Aamir Cheema6
Related Work
k Furthest Neighbors queryReturn k objects furthest from the query point– [JCSS89]– [PR98]– [WALCOM09]
![Page 7: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/7.jpg)
Presented by: Muhammad Aamir Cheema7
Related Work
Constrained k Nearest Neighbors query Return k objects closest to the query point
among the objects that lie in a constrained region
– [SSTD01]– [DASFAA10]
![Page 8: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/8.jpg)
Presented by: Muhammad Aamir Cheema8
Related Work
Aggregate k Nearest Neighbors query Given a set of query points, return k objects
that have smallest aggregated distance.
– [TKDE05]– [SIGMOD05]– [ICCSA07]
![Page 9: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/9.jpg)
Presented by: Muhammad Aamir Cheema9
Modeling spatial queries to versatile top-k queriesk nearest neighbors query• f(p) = dist(p,q)
k furhtest neighbors query• f(p) = - dist(p,q)
Constrained k nearest neighbors query• If p is inside the constrained region
– f(p) = dist(p,q)• Else
– f(p) = ∞
![Page 10: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/10.jpg)
Presented by: Muhammad Aamir Cheema10
Modeling spatial queries to versatile top-k queriesAggregate k nearest neighbors query
– Sum
– Max
– Min
![Page 11: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/11.jpg)
Presented by: Muhammad Aamir Cheema11
Conceptual Grid-Tree
root
Intermediate Entries
Grid Cells
![Page 12: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/12.jpg)
Presented by: Muhammad Aamir Cheema12
Initial Computation
• Insert root of grid-tree in heap with key set to zero• While heap is not empty• de-heap a rectangle R
– If SL(R) > q.scorek
• Return top-k objects
– If R is a cell of the grid
• Retrieve the objects in R and update top-k list and q.scorek
– Else
• For each child Rc of R
– If SL(Rc) ≤ q.scorek
» insert Rc in heap with key SL(Rc)
![Page 13: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/13.jpg)
Presented by: Muhammad Aamir Cheema13
Continuous monitoring
• Phase 1: receive object and query updates.– Change in the queries based on the update below.
• Internal update (vsf(oold)≤q.scorek Λ vsf(onew)≤q.scorek)
– Arrange the order of top-k list
Incoming update (vsf(oold)>q.scorek Λ vsf(onew)<q.scorek)
– Insert the object into top-k list
• Outgoing update (vsf(oold)≤q.scorek Λ vsf(onew)>q.scorek)
– Remove the object from top-k list
![Page 14: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/14.jpg)
14
Continuous monitoring …
• Phase 2: Check the status of each query one by one– If query moved then
• Execute the initial algorithm.
– If top-k list contains at least k objects then • Keep top k objects and remove rest of the objects.
– If top-k list contains less than k objects then • Expand the search area by visiting more cells
Presented by: Muhammad Aamir Cheema
![Page 15: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/15.jpg)
15
Experiments
• We compare our algorithm with CPM [SIGMOD05]• Moving objects are generated using Brinkhoff generator
[GeoInformatica02]
Presented by: Muhammad Aamir Cheema
![Page 16: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/16.jpg)
16
Effect of grid size
Presented by: Muhammad Aamir Cheema
![Page 17: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/17.jpg)
17
Effect of k
Presented by: Muhammad Aamir Cheema
![Page 18: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/18.jpg)
18
Effect of agility
Presented by: Muhammad Aamir Cheema
![Page 19: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/19.jpg)
19
Aggregate kNN queries
Presented by: Muhammad Aamir Cheema
![Page 20: A Unified Algorithm for Continuous Monitoring of Spatial Queries](https://reader036.fdocuments.in/reader036/viewer/2022062422/56813323550346895d9a0160/html5/thumbnails/20.jpg)
Thank you…
Questions??