Algorithm Search⌘K

Algorithmadvanced

Branch-and-bound skyline

Also called BBS skyline.

Find the skyline with an R-tree: take entries from a heap in order of L1 mindist from the origin, and drop each entry whose lower corner a skyline point found so far dominates.

Time
O(r b (log(r b) + s d)) worst
Space
O(r b + s) extra
Counts
io r worst
Where
b = the node capacity of the R-tree; d = the number of dimensions; n = the number of points; r = the number of R-tree nodes whose lower corner no point dominates; s = the number of skyline points
Properties
deterministicexactexternalnot in placeonlineiterative
Origin
Dimitris Papadias, Yufei Tao, Greg Fu, Bernhard Seeger, 2003

The branch-and-bound skyline algorithm (BBS) computes the skyline of a set of points, the points that no other point dominates, from an R-tree on the points. It keeps a priority queue of tree entries ordered by mindist, the L1 distance from the origin to the lower corner of the entry, and it takes the nearest entry first. An entry whose lower corner a skyline point found so far dominates is dropped with its whole subtree. Block-nested-loop skyline and sort-filter skyline read every point. BBS reads only the tree nodes that could hold a skyline point, and it outputs each skyline point as soon as it finds it. This database skyline is the Pareto front, not the skyline problem of buildings.

In plain words

You look for a hotel that is cheap and near the beach. A hotel is not worth a look if another one is no worse in both and better in one. The skyline is the hotels that are left.

The hotels are filed in boxes, and each box has a label that gives the lowest price and the shortest distance of the hotels in it. You open boxes in order of how good their label looks, the best label first.

A hotel that comes out first beats nothing that came before it, so it is in the skyline. When the label of a box is already beaten by a skyline hotel that you found, then every hotel in that box is beaten too, and you put the box away without opening it.

The problem

The input is a multiset PP of nn points in dd dimensions, where smaller values are better in every dimension. A point pp dominates a point qq when pi≤qip_i \le q_i for every ii and pi<qip_i < q_i for some ii (see Pareto dominance). The output is every point of PP that no point of PP dominates. Equal points do not dominate each other, so all copies of a skyline point are in the output. For an attribute where larger is better, negate it first.

The points are stored in an R-tree with node capacity bb. Each node has a minimum bounding rectangle (MBR) with a lower corner ℓ\ell, the smallest value in each dimension of the points below it. The key of an entry is the sum of the coordinates of its lower corner, and for a point the sum of its coordinates. When all values are not negative, the key is the L1 distance from the origin.

Cost model. The main measure is the number of R-tree nodes read, since each node is one disk page. The second measure is the work in the word RAM, with a binary heap and a scan of the skyline found so far for each dominance test.

The algorithm

  1. BBS(R) ▷ R: an R-tree on the points; smaller is better
  2. 1S ← empty list; H ← a min-heap that holds the root of R with key mindist(root)
  3. 2while H is not empty do
  4. 3e ← the entry of H with the smallest key; remove it
  5. 4if some point of S dominates the lower corner of e then continue
  6. 5if e is a node then
  7. 6for each child c of e do if no point of S dominates the lower corner of c then insert c in H with key mindist(c)
  8. else
  9. 7append the point e to S ▷ output e now
  10. 8return S

Line L6 tests a child before it enters the heap, and line L4 tests it again when it leaves, because SS may have grown in the meantime. Both tests use the same rule: if a point dominates the lower corner of a rectangle, it dominates every point in the rectangle. This is the bound of branch and bound, and the heap order is the branch rule, as in best-first search.

Example

Take the 12 points a(1,9)a(1, 9), b(2,10)b(2, 10), c(4,8)c(4, 8), d(3,6)d(3, 6), e(6,7)e(6, 7), f(9,10)f(9, 10), g(7,5)g(7, 5), h(5,4)h(5, 4), i(8,3)i(8, 3), j(9,1)j(9, 1), k(10,4)k(10, 4) and l(8,8)l(8, 8), in an R-tree with capacity 3 built by Sort-Tile-Recursive packing. The root, with lower corner (1,1)(1, 1), has two children. N1N_1, with corner (1,4)(1, 4), holds the leaves L1={d,e,h}L_1 = \{d, e, h\} with corner (3,4)(3, 4), L2={f,g,l}L_2 = \{f, g, l\} with corner (7,5)(7, 5) and L3={a,b,c}L_3 = \{a, b, c\} with corner (1,8)(1, 8). N2N_2, with corner (8,1)(8, 1), holds the leaf L4={i,j,k}L_4 = \{i, j, k\} with corner (8,1)(8, 1). The skyline is h,d,a,j,ih, d, a, j, i.

step entry taken (key) action skyline SS
1 root (2) read it; insert N1N_1 (5) and N2N_2 (9)
2 N1N_1 (5) read it; insert L1L_1 (7), L3L_3 (9) and L2L_2 (12)
3 L1L_1 (7) read it; insert hh (9), dd (9) and ee (13)
4 N2N_2 (9) read it; insert L4L_4 (9)
5 L3L_3 (9) read it; insert aa (10), cc (12) and bb (12)
6 hh (9) output hh
7 dd (9) output h,dh, d
8 L4L_4 (9) read it; insert jj (10) and ii (11); hh dominates kk, so kk does not enter h,dh, d
9 aa (10), jj (10), ii (11) output each h,d,a,j,ih, d, a, j, i
10 L2L_2 (12), cc (12), bb (12), ee (13) drop: hh dominates the corner (7,5)(7, 5) and ee, dd dominates cc, aa dominates bb h,d,a,j,ih, d, a, j, i

Ties in the key are taken in the order of insertion. BBS reads 6 of the 7 nodes. It never reads L2L_2, because the corner (7,5)(7, 5) of L2L_2 is dominated by hh, and so every point in L2L_2 is dominated by hh.

Correctness

The keys of the entries taken from the heap never decrease, because a child or a point below a node has a lower corner no smaller than the corner of the node. A point that dominates another point has a smaller key. So when a point qq leaves the heap, every skyline point that dominates qq has a smaller key and is in SS already, and qq is dropped at line L4. A skyline point is never dropped, since a point that dominated the corner of one of its ancestors would dominate it too. So BBS outputs exactly the skyline, in order of key. The full proof is in the proof page.

The same argument gives the node count. BBS reads a node if and only if no point of PP dominates its lower corner. Without the points, a node with such a corner could hold a point at that corner, which would be in the skyline. So no algorithm that uses only the rectangles of the R-tree can be sure of the skyline while it leaves such a node unread. This is the I/O optimality that Papadias et al. claim for BBS.

Proof: BBS outputs exactly the skyline, in order of mindist, and reads exactly the R-tree nodes whose lower corner no point dominatesfull

We use the line numbers of the pseudocode. Smaller values are better. A point pp dominates qq, written p≺qp \prec q, when pi≤qip_i \le q_i for every dimension ii and pi<qip_i < q_i for some ii. The skyline Sky(P)\mathit{Sky}(P) of a multiset PP of points is the set of points of PP that no point of PP dominates. Each node NN of the R-tree has a minimum bounding rectangle with lower corner ℓ(N)\ell(N): every point qq stored below NN has q≥ℓ(N)q \ge \ell(N) in every coordinate, and the corner of a child is at least the corner of its parent in every coordinate. For an entry ee (a node or a point) let c(e)c(e) be ℓ(e)\ell(e) for a node and ee itself for a point, and let key(e)=∑ic(e)i\mathit{key}(e) = \sum_i c(e)_i, its L1 distance from the origin when all values are not negative (for any values, the order is the same). An entry is pruned when some point of SS dominates c(e)c(e), at line L4 or line L6.

Lemma 1 (dominating a corner). If p≺ℓ(N)p \prec \ell(N), then pp dominates every point below NN. If p≺qp \prec q, then key(p)<key(q)\mathit{key}(p) < \mathit{key}(q).

Proof. Let qq be below NN. Then pi≤ℓ(N)i≤qip_i \le \ell(N)_i \le q_i for every ii, and for the ii with pi<ℓ(N)ip_i < \ell(N)_i also pi<qip_i < q_i. For the second claim, add pi≤qip_i \le q_i over all ii, with one strict inequality. □\square

Lemma 2 (keys do not decrease). The keys of the popped entries form a non-decreasing sequence.

Proof. A child of a node has a corner at least the corner of the node in every coordinate, and a point below the node is at least its corner, so every pushed entry has a key at least the key of the entry popped in the same iteration. A min-heap that only receives keys at least the last popped key pops keys in non-decreasing order. □\square

Lemma 3 (what is popped before what). Let xx be a point or a node, and suppose that no point of Sky(P)\mathit{Sky}(P) ever prunes xx or one of its ancestors. Then xx is popped, and it is popped before every entry with a larger key.

Proof. By induction down the path from the root. The root is the first entry pushed (line L1). Suppose an ancestor aa of xx is popped. It is not pruned, so it is read, and its child a′a' on the path is pushed unless it is pruned at line L6, which the hypothesis excludes. Once pushed, a′a' is popped before any entry with a larger key, because the heap pops its smallest key, and key(a′)≤key(x)\mathit{key}(a') \le \mathit{key}(x). So xx is popped, before every entry of larger key that is popped after it is pushed, and by Lemma 2 before every entry of larger key at all. □\square

Lemma 4 (S holds only skyline points). At every moment S⊆Sky(P)S \subseteq \mathit{Sky}(P), and each point added to SS is added once.

Proof. Suppose a point qq is added at line L7 but some point p∈Pp \in P dominates qq. Choose such a pp in Sky(P)\mathit{Sky}(P): the domination order on PP is a strict partial order on a finite set, so the dominators of qq contain one that nothing dominates. We show that pp is in SS before qq is popped, so qq is pruned at line L4, a contradiction. By induction on the order of the pops, SS holds only skyline points before the pop of qq, and a skyline point never dominates the corner of an ancestor of pp or pp itself, by Lemma 1, since that would make it dominate pp. So Lemma 3 applies to pp, and since key(p)<key(q)\mathit{key}(p) < \mathit{key}(q) by Lemma 1, pp is popped before qq and is added to SS. Each point id is pushed at most once, because each node is read at most once (it is pushed once, by its parent), so it is added at most once. □\square

Theorem 1 (correctness). BBS outputs every point of Sky(P)\mathit{Sky}(P) exactly once and no other point, as a multiset of points with their duplicates, in non-decreasing order of key.

Proof. By Lemma 4 every output point is a skyline point, and output once. Let p∈Sky(P)p \in \mathit{Sky}(P). By Lemma 4 the pruning points are skyline points, and by Lemma 1 a skyline point that dominated c(e)c(e) for an ancestor ee of pp, or pp itself, would dominate pp. So no ancestor of pp and not pp is pruned, and by Lemma 3 pp is popped and added. Two equal points do not dominate each other, so duplicates of a skyline point are all in the skyline and all output. The order follows from Lemma 2. Each iteration pops one entry and each entry is pushed at most once, so the loop of line L2 ends. ■\blacksquare

Since the points come out in order of key and SS is never changed except by adding, each output point is final when it is output: BBS is progressive.

Theorem 2 (node reads). BBS reads a node NN, at line L5, if and only if no point of PP dominates ℓ(N)\ell(N), and it reads it once.

Proof. If no point dominates ℓ(N)\ell(N), then no point dominates the corner of an ancestor of NN either: a point p≺ℓ(A)p \prec \ell(A) with ℓ(A)≤ℓ(N)\ell(A) \le \ell(N) gives p≺ℓ(N)p \prec \ell(N). So no point ever prunes NN or an ancestor, Lemma 3 gives that NN is popped, and it is not pruned, so it is read. Conversely, let some p∈Pp \in P dominate ℓ(N)\ell(N), and take p∈Sky(P)p \in \mathit{Sky}(P) as in Lemma 4. Then key(p)<key(N)\mathit{key}(p) < \mathit{key}(N) by the second part of Lemma 1, applied to the corner. By Lemma 3, pp is popped and added to SS before any entry of key key(N)\mathit{key}(N), so when NN is checked at line L6 or line L4, p∈Sp \in S prunes it. NN is pushed only by its parent, which is read at most once, so NN is read at most once. ■\blacksquare

A node whose corner no point dominates is a node that may contain a skyline point, given only its rectangle: a point placed at its corner would be in the skyline. Papadias et al. call BBS I/O optimal in this sense.

Theorem 3 (work). Let rr be the number of nodes read, CC the node capacity, s=∣Sky(P)∣s = |\mathit{Sky}(P)| and dd the number of dimensions. BBS pushes at most rC+1r C + 1 entries, uses O(rC)O(r C) heap space, and does O(rC(log⁡(rC)+sd))O(r C (\log(r C) + s d)) work, with the dominance tests against SS done by a scan.

Proof. Each read node pushes at most CC children, and the root is pushed once. Each push and pop costs O(log⁡(rC))O(\log(r C)). Each entry is tested against SS at most twice (lines L6 and L4), and each test scans at most ss points in O(d)O(d) each. ■\blacksquare

Complexity

  • Node reads. Exactly rr, the number of nodes whose lower corner no point dominates. Each node is read at most once, because only its parent inserts it.
  • Work. Each node read inserts at most bb entries, so the heap gets at most rb+1r b + 1 entries. Each insert and each removal costs O(log⁡(rb))O(\log(r b)), and each entry is tested against SS at most twice, in O(sd)O(s d) by a scan. The total is O(rb(log⁡(rb)+sd))O(r b (\log(r b) + s d)) in the word RAM. A spatial index on SS in place of the scan makes the tests faster when the skyline is large.
  • Space. The heap holds at most rb+1r b + 1 entries and SS holds ss points. In the worst case, for example when all points are in the skyline, rr is the number of all nodes and the heap can hold a large part of the data.
  • Building the tree. The R-tree is a cost paid once for many queries. The implementation builds it by Sort-Tile-Recursive packing in O(nlog⁡n)O(n \log n) time.

Properties

  • Progressive. Each point is final when it is output, because a point taken later has a key no smaller and cannot dominate it. The first results come after only a few node reads.
  • Output order. The skyline comes out in order of key, the sum of the coordinates.
  • Exact. The result does not depend on the shape of the R-tree. Only the number of node reads does.
  • Duplicates. All copies of a skyline point are output, because equal points do not dominate each other.

Variants and improvements

  • Constrained skyline. To find the skyline of the points in a query rectangle, drop the entries that do not meet the rectangle, and use the corner of the part of each rectangle inside the query.
  • Top-k skyline points. With any monotone function in place of the sum as the key, the skyline points come out in order of that function, so the first kk of them answer a top-k query that is restricted to the skyline.
  • K-skyband. To find the points that fewer than KK points dominate, keep every point that is output and drop an entry only when KK of them dominate its corner.
  • Other indexes. The same scheme works on any tree whose nodes give a lower corner, such as a k-d tree with the bounding box of each node.
  • Nearest-neighbor skyline. Kossmann, Ramsak and Rost (2002) found skyline points by repeated nearest-neighbor searches in an R-tree, splitting the space into parts after each result. That method can read the same node in several searches. BBS reads each node at most once.

When to use it

Use BBS when the points have an R-tree or a similar index, the skyline is asked often, and the dimensions are few, so that the skyline is small compared with the data. Then BBS reads only a small part of the tree and gives the first answers quickly. Without an index, or for a single query on data that is used once, a scan such as sort-filter skyline avoids the cost of the index. In many dimensions most points are in the skyline, few corners are dominated, and BBS reads nearly every node.

Pitfalls

  • The wrong corner. For minimization the key and the test must use the lower corner of the rectangle. The upper corner gives a key that is too large, and points come out before the points that dominate them.
  • Testing only once. If the test of line L4 is left out, an entry inserted before its dominator was found is read anyway. The result stays correct, but the node count grows.
  • Ties in the key. Two points with the same key cannot dominate each other, so any order of ties is correct. A key that is not strictly monotone, such as the maximum coordinate, breaks this, and a dominated point can come out first.
  • Larger is better. Negate those attributes, or use the upper corners and the distance from the largest values. Mixing the two directions in one tree gives wrong results.
  • Heap memory. The heap is not bounded by the size of the skyline. In anticorrelated data it can hold a large part of the tree.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

branch_and_bound_skyline.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/branch-and-bound-skyline/. The authors are listed in prov/G5JMTR.jsonl.

"""Branch-and-bound skyline (BBS) over a static R-tree, smaller values are better.

A point p dominates q when p[i] <= q[i] in every dimension and p[i] < q[i] in
at least one. The skyline is the set of points that no point dominates; equal
points do not dominate each other, so duplicates of a skyline point are all in
the skyline.

The R-tree is built by Sort-Tile-Recursive (STR) packing with a fixed node
capacity. BBS keeps a min-heap of entries keyed by mindist, the L1 distance
from the origin to the lower corner of the entry (for a point, the sum of its
coordinates). It pops the entry with the smallest key; an entry whose lower
corner is dominated by a skyline point found so far is discarded, a node is
expanded (one node read), and a point is a new skyline point. Children are
also checked before they are pushed.
"""

import heapq
import itertools
import math
from collections.abc import Sequence


def dominates(p: Sequence, q: Sequence) -> bool:
    """p dominates q: no worse in every dimension and better in at least one."""
    better = False
    for a, b in zip(p, q):
        if a > b:
            return False
        if a < b:
            better = True
    return better


class Node:
    """An R-tree node: lo and hi are the corners of its MBR; children are Nodes or point ids."""

    __slots__ = ("lo", "hi", "children", "leaf")

    def __init__(self, lo: tuple, hi: tuple, children: list, leaf: bool) -> None:
        self.lo, self.hi, self.children, self.leaf = lo, hi, children, leaf


def _tile(items: list, center, dim: int, dims: int, cap: int) -> list:
    """STR: split items (sorted by center[dim]) into slabs, recursively, into groups of at most cap."""
    if dim == dims - 1 or len(items) <= cap:
        items = sorted(items, key=lambda it: center(it)[dim])
        return [items[i:i + cap] for i in range(0, len(items), cap)]
    pages = math.ceil(len(items) / cap)
    slabs = math.ceil(pages ** (1 / (dims - dim)))
    per = cap * math.ceil(pages / slabs)
    items = sorted(items, key=lambda it: center(it)[dim])
    out = []
    for i in range(0, len(items), per):
        out += _tile(items[i:i + per], center, dim + 1, dims, cap)
    return out


def build_rtree(points: Sequence[tuple], cap: int = 4) -> Node | None:
    """A static R-tree over the point ids 0..n-1, packed bottom-up by STR."""
    if not points:
        return None
    dims = len(points[0])
    groups = _tile(list(range(len(points))), lambda i: points[i], 0, dims, cap)
    level = []
    for g in groups:
        lo = tuple(min(points[i][k] for i in g) for k in range(dims))
        hi = tuple(max(points[i][k] for i in g) for k in range(dims))
        level.append(Node(lo, hi, g, True))
    while len(level) > 1:
        groups = _tile(level, lambda nd: tuple((a + b) / 2 for a, b in zip(nd.lo, nd.hi)), 0, dims, cap)
        level = [Node(tuple(min(c.lo[k] for c in g) for k in range(dims)),
                      tuple(max(c.hi[k] for c in g) for k in range(dims)), g, False) for g in groups]
    return level[0]


def all_nodes(root: Node | None) -> list:
    out, stack = [], [root] if root else []
    while stack:
        nd = stack.pop()
        out.append(nd)
        if not nd.leaf:
            stack.extend(nd.children)
    return out


def bbs(points: Sequence[tuple], root: Node | None):
    """Return (skyline ids in output order, stats) with stats nodes_read and max_heap."""
    stats = {"nodes_read": 0, "max_heap": 0}
    if root is None:
        return [], stats
    sky: list = []
    tie = itertools.count()
    heap = [(sum(root.lo), next(tie), root)]  # @line L1
    while heap:  # @line L2
        stats["max_heap"] = max(stats["max_heap"], len(heap))
        _, _, e = heapq.heappop(heap)  # @line L3
        corner = e.lo if isinstance(e, Node) else points[e]
        if any(dominates(points[s], corner) for s in sky):
            continue  # @line L4
        if isinstance(e, Node):  # @line L5
            stats["nodes_read"] += 1
            for c in e.children:
                cc = c.lo if isinstance(c, Node) else points[c]
                if not any(dominates(points[s], cc) for s in sky):
                    heapq.heappush(heap, (sum(cc), next(tie), c))  # @line L6
        else:
            sky.append(e)  # @line L7
    return sky, stats  # @line L8


def skyline_bruteforce(points: Sequence[tuple]) -> list:
    return [i for i, p in enumerate(points) if not any(dominates(q, p) for q in points)]
test_branch_and_bound_skyline.py 68 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/branch-and-bound-skyline/. The authors are listed in prov/G5JMTR.jsonl.

import random
from collections import Counter

from branch_and_bound_skyline import Node, all_nodes, bbs, build_rtree, dominates, skyline_bruteforce

NAMES = "abcdefghijkl"
P_EX = [(1, 9), (2, 10), (4, 8), (3, 6), (6, 7), (9, 10), (7, 5), (5, 4), (8, 3), (9, 1), (10, 4), (8, 8)]


def check_tree(points, root, cap):
    seen = Counter()
    for nd in all_nodes(root):
        assert 1 <= len(nd.children) <= cap
        for c in nd.children:
            lo, hi = (c.lo, c.hi) if isinstance(c, Node) else (points[c], points[c])
            assert all(a <= b for a, b in zip(nd.lo, lo)) and all(a >= b for a, b in zip(nd.hi, hi))
            if nd.leaf:
                seen[c] += 1
    assert seen == Counter(range(len(points)))


def test_example() -> None:
    root = build_rtree(P_EX, 3)
    check_tree(P_EX, root, 3)
    leaves = sorted("".join(sorted(NAMES[i] for i in nd.children)) for nd in all_nodes(root) if nd.leaf)
    assert leaves == ["abc", "deh", "fgl", "ijk"]
    sky, stats = bbs(P_EX, root)
    assert "".join(NAMES[i] for i in sky) == "hdaji"
    assert stats["nodes_read"] == 6 and len(all_nodes(root)) == 7


def test_dominance() -> None:
    assert dominates((1, 2), (1, 3)) and not dominates((1, 3), (1, 3))
    assert not dominates((0, 4), (1, 3)) and dominates((0, 0, 0), (0, 0, 1))


def test_random_against_bruteforce() -> None:
    rng = random.Random(8)
    for trial in range(120):
        dims = rng.choice([2, 3, 4])
        dom = rng.choice([3, 4, 5])
        n = rng.randrange(0, 200)
        pts = [tuple(rng.randrange(dom) for _ in range(dims)) for _ in range(n)]
        cap = rng.choice([2, 3, 4, 6])
        root = build_rtree(pts, cap)
        if pts:
            check_tree(pts, root, cap)
        sky, stats = bbs(pts, root)
        assert Counter(sky) == Counter(skyline_bruteforce(pts))
        keys = [sum(pts[i]) for i in sky]
        assert keys == sorted(keys)  # progressive: output in order of mindist
        # BBS reads exactly the nodes whose lower corner no point dominates.
        need = sum(1 for nd in all_nodes(root) if not any(dominates(p, nd.lo) for p in pts))
        assert stats["nodes_read"] == need


def test_edges_and_anticorrelated() -> None:
    assert bbs([], build_rtree([], 4)) == ([], {"nodes_read": 0, "max_heap": 0})
    assert bbs([(2, 3)], build_rtree([(2, 3)], 4))[0] == [0]
    same = [(1, 1, 1)] * 9
    assert sorted(bbs(same, build_rtree(same, 2))[0]) == list(range(9))
    diag = [(i, 49 - i) for i in range(50)]
    sky, stats = bbs(diag, build_rtree(diag, 4))
    assert sorted(sky) == list(range(50))
    assert stats["nodes_read"] == len(all_nodes(build_rtree(diag, 4)))

History

Börzsönyi, Kossmann and Stocker (2001) added the skyline operator to SQL and gave the block-nested-loops and divide-and-conquer algorithms, which read all the data. Kossmann, Ramsak and Rost (2002) gave a progressive algorithm by nearest-neighbor search in an R-tree, and Eng, Ooi and Tan (2003) studied progressive skyline computation with other indexes. Papadias, Tao, Fu and Seeger (SIGMOD 2003) replaced the repeated nearest-neighbor searches with one best-first traversal and showed that BBS reads only the nodes that may contain skyline points. The journal version of 2005 extended BBS to several variations of the skyline query.

References

  1. Dimitris Papadias, Yufei Tao, Greg Fu and Bernhard Seeger, An optimal and progressive algorithm for skyline queries, SIGMOD 2003, pages 467 to 478, the BBS algorithm, its I/O optimality and its variants
  2. Dimitris Papadias, Yufei Tao, Greg Fu and Bernhard Seeger, Progressive skyline computation in database systems, ACM Transactions on Database Systems 30(1), 2005, pages 41 to 82, the journal version, with the proof that BBS reads only the nodes that may contain skyline points and the variations of skyline queries
  3. Stephan Börzsönyi, Donald Kossmann and Konrad Stocker, The skyline operator, ICDE 2001, pages 421 to 430, the skyline operator and the block-nested-loops and divide-and-conquer algorithms
  4. Donald Kossmann, Frank Ramsak and Steffen Rost, Shooting stars in the sky: an online algorithm for skyline queries, VLDB 2002, pages 275 to 286, the nearest-neighbor skyline algorithm with an R-tree, which BBS improves on
  5. Pin-Kwang Eng, Beng Chin Ooi and Kian-Lee Tan, Indexing for progressive skyline computation, Data and Knowledge Engineering 46(2), 2003, pages 169 to 201, progressive skyline computation with an index
  6. Scott T. Leutenegger, Mario A. Lopez and Jeffrey Edgington, STR: a simple and efficient algorithm for R-tree packing, ICDE 1997, pages 497 to 506, the Sort-Tile-Recursive packing that the implementation uses to build the R-tree

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example