Abstract

Top-K query processing is an important building block for ranked retrieval, with numerous applications. Top-K queries return a ranked set of the k best data objects based on the ranks/scores of the objects, assigned by some ranking/scoring function. In many applications, including databases and network routing, input objects are partitioned into categories denoted by distinct colors and a query asks for reporting the set of top-K categories of objects based on different aggregation functions like “Max/Min”, “Count”, etc.We consider a set of problems defined on colored geometric objects (points/intervals) in Rd (respectively in [0,U]2). We are given a set S of n colored geometric objects in Rd (respectively in [0,U]2). Optionally, each object p has a weight w(p)⩾0. The number of colors is m⩽n. For any color c and a query q, let f(c,q) be an aggregation function defined over c-colored objects intersecting q. For a given k∈[1…n], we define top-K(q) to be the set of k colors with the highest kf(c,q) values among the distinct colors of the objects intersecting q. (If the number of distinct colors in q is less than k, we simply include all such colors in top-K(q).) Our goal is to preprocess S into a data structure so that given a query q and an integer k∈[1…n], the colors in top-K(q) can be reported efficiently.Efficient solutions are provided to instances of the above general problem in cases where (i) S is a set of colored points, q is a query interval and f(c,q) is the maximum/minimum weight of points of color c in q, (ii) S is a set of colored intervals, q is a query point and f(c,q) is the count of intervals of color c stabbed by q, (iii) S is a set of colored intervals, q is a query point and f(c,q) is the maximum/minimum weight of intervals of color c stabbed by q. In this paper static solutions are provided for case (i) in all d⩾1 and for case (ii) and (iii) in d=1 and dynamic solution is provided for case (i) in d=1. For case (iii) a static solution is also provided in [0,U]2. Techniques include transformation to the uncolored top-K problem and persistence.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.