Inverse Queries for Multidimensional Spaces
description
Transcript of Inverse Queries for Multidimensional Spaces
![Page 1: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/1.jpg)
Inverse Queries for Multidimensional Spaces
Thomas Bernecker, Tobias Emrich, Hans-Peter Kriegel, Nikos Mamoulis, Matthias Renz, Shiming Zhang, Andreas Züfle
![Page 2: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/2.jpg)
Motivation Reverse Queries From Reverse to Inverse
Inverse Queries Formal Definition Applications Framework Experiments
Future Extensions
Outline
2
![Page 3: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/3.jpg)
Reverse Queries
3
Given a query object and a spatial query predicate
Find all objects of a database having in their result set
Characteristic Example: The Reverse kNN Query
![Page 4: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/4.jpg)
Given a query object and a positive integer . Find all objects of a database that have as one of their -
nearest neighbors, i.e.
Reverse kNN Queries
4
![Page 5: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/5.jpg)
Given a query object and a positive integer . Find all objects of a database that have as one of their -
nearest neighbors, i.e.
Reverse kNN Queries
5
q
k=1
![Page 6: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/6.jpg)
Given a query object and a positive integer . Find all objects of a database that have as one of their -
nearest neighbors, i.e.
Reverse kNN Queries
6
q
k=1
![Page 7: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/7.jpg)
RkNN queries take as input one single query object However, similarity queries (e.g. -range, kNN) may return more
than one result.
In this work, we generalize the concept of reverse queries Assume the query answer can be (partially) observed. But the query object is not known Find the query!
From Reverse to Inverse
7
![Page 8: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/8.jpg)
Let be a spatial query predicate.
An inverse query () computes for a given set of query objects , the set of points for which is in the query result. Formally,
Inverse Queries
8
![Page 9: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/9.jpg)
Let be a spatial query predicate.
An inverse query () computes for a given set of query objects , the set of points for which is in the query result. Formally,
Special Cases: The mono-chromatic case where the result is a subset of The bi-chromatic case where the result is a subset of a given
database
Inverse Queries
9
![Page 10: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/10.jpg)
Naïve Approach: Perform a reverse query for each Intersect the results
Challenge Efficient algorithms for inverse queries. Single index traversal
Different Predicates Inverse -range queries Inverse kNN queries Inverse dynamic skyline queries
Inverse Queries
10
![Page 11: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/11.jpg)
Consider a movie database containing a large number of movie records.
Each movie record contains features such as humor, suspense, romance, etc.
Applications: Bi-Chromatic Inverse -range query
11
susp
ense
humor
![Page 12: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/12.jpg)
Users of the database are represented by the same attributes, describing their preferences.
Assume that a group of users, such as a family, want to watch a movie together
12
susp
ense
humor
Applications: Bi-Chromatic Inverse -range query
![Page 13: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/13.jpg)
Find movies sufficiently close to ALL users preferences
13
susp
ense
humor
Applications: Bi-Chromatic Inverse -range query
![Page 14: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/14.jpg)
Find movies sufficiently close to ALL users preferences
14
susp
ense
humor
Recommend me!
Applications: Bi-Chromatic Inverse -range query
![Page 15: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/15.jpg)
Assume that a set of households and their spatial coordinates.
Applications: Mono-Chromatic Inverse kNN query
15
![Page 16: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/16.jpg)
Some households have been robbed in short succession and the robber must be found.
Applications: Mono-Chromatic Inverse kNN query
16
![Page 17: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/17.jpg)
Assume that the robber will only rob houses which are in his close vicinity, e.g. within the closest hundred households.
An inverse 100NN query returns a list of possible suspects
Applications: Mono-Chromatic Inverse kNN query
17
![Page 18: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/18.jpg)
Assume that the robber will only rob houses which are in his close vicinity, e.g. within the closest hundred households.
An inverse 100NN query returns a list of possible suspects
Applications: Mono-Chromatic Inverse kNN query
18
Suspects!
![Page 19: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/19.jpg)
An online-shop wants to recommend items to their customers by analyzing other items clicked by them.
Clicked items Q seen as samples of products the customer is interested in, and thus, is assumed to be in the customer’s dynamic skyline.
Applications: General Inverse Dynamic Skyline Query
19
![Page 20: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/20.jpg)
The inverse dynamic skyline query can be used to narrow the space which the customers preferences are located in.
Case |Q|=1: Reverse Dynamic Skyline Query.1
Applications: General Inverse Dynamic Skyline Query
201Evangelos Dellis, Bernhard Seeger: Efficient Computation of Reverse Skyline Queries. VLDB 2007
![Page 21: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/21.jpg)
Case: Q>1
Applications: General Inverse Dynamic Skyline Query
21
![Page 22: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/22.jpg)
Fast Query Based Evaluation Verify simple constraints that are necessary conditions for a
non-empty result. Query-Based Pruning
Employ the topology of the query objects to prune objects in DB Object-Based Pruning
Access database objects in ascending order of their maximum distance to the query set
Refinement Perform a (forward) query on each remaining candidate. Check if all query objects are contained in the result.
Filter-Refinement Framework
22
![Page 23: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/23.jpg)
Experiments
23
![Page 24: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/24.jpg)
Restrictive Query Definition Often yields empty result sets Applications?
Ranked Result Rank by Recall: Return objects similar to the largest number of
query objects first. Rank by Precision: Return objects with the higest fraction of
query objects in their result first. Rank by predicate parameters: Return objects that require the
least /k parameter in order to have all objects in Q in their result.
Future Directions
24
![Page 25: Inverse Queries for Multidimensional Spaces](https://reader035.fdocuments.in/reader035/viewer/2022062816/56816263550346895dd2c6a1/html5/thumbnails/25.jpg)
Thank you for listening!
25