Research Article

Effective Space Usage Estimation for Sliding-Window Skybands

Algorithm 1

Expected skyband cardinality: Ψk(n,d).
Input: n: the number of the elements
   d: the number of the dimensions
k: the k-skyband
Output: the expected skyband cardinality
begin
 if nk+1  then return n;
 if   d=1  then return k+1;
 for i=1  to d do α[i]k+1;
ξ0;
 for i=k+2  to n  do
ξ(ξ+1)mod 2;
   if ξ=1  then
β[1]k+1;
    for j=2  to d  do β[j]β[j-1]/i+α[j];
   else
α[1]k+1;
    for j=2  to d  do α[j]α[j-1]/i+β[j];
   end
 end
 if ξ=0  then return α[d]  else return β[d];
end