Space Constrained Selection Problems for Data Warehouses and Pervasive Computing