2080 5

CSC420 · 2080 · 5 marks

How many cuboids are possible from 5-dimensional data? Discuss the concept of full cube and iceberg cube.

How many cuboids are possible from 5-dimensional data? Discuss the concept of full cube and iceberg cube. [5]

Data Warehousing and Data MiningChapter 4: Data Cube TechnologyCube materializationNumerical: cuboids in data cube

Cuboids from 5-Dimensional Data, Full Cube, and Iceberg Cube

Given

  • Number of dimensions: $n = 5$
  • (No concept hierarchies specified, so we assume one level per dimension.)

Solution

Number of Cuboids

A data cube of $n$ dimensions (without concept hierarchies) contains $2^n$ cuboids, because each dimension can either be included or excluded from a given group-by.

$$\text{Number of cuboids} = 2^n = 2^5 = 32$$

Breakdown by level (using dimensions A, B, C, D, E):

LevelNo. of Cuboids$\binom{5}{k}$Examples
5-D (Base)1$\binom{5}{5}$ABCDE
4-D5$\binom{5}{4}$ABCD, ABCE, ABDE, ACDE, BCDE
3-D10$\binom{5}{3}$ABC, ABD, ...
2-D10$\binom{5}{2}$AB, AC, ...
1-D5$\binom{5}{1}$A, B, C, D, E
0-D (Apex)1$\binom{5}{0}$( ) = "all"
Total32$2^5$
  • The base cuboid (ABCDE) is the least generalized and holds the most detailed data.
  • The apex cuboid (0-D) is the most generalized, holding a single aggregate value.

Note: If each dimension had an associated concept hierarchy with $L_i$ levels, the total would instead be $\prod_{i=1}^{n}(L_i + 1)$. With no hierarchy given, the answer is $2^5 = 32$.


Full Cube

A full cube is a data cube in which all cuboids (all $2^n$ group-by combinations) and all their cells are precomputed and materialized in advance.

  • For 5 dimensions, all 32 cuboids are precomputed.
  • Advantage: Queries are answered very fast, since every aggregation is already available.
  • Disadvantage: Requires very large storage and computation; grows explosively with dimensions and concept hierarchies, making it impractical for high-dimensional or sparse data.

Iceberg Cube

An iceberg cube is a partially materialized cube that stores only those cells whose aggregate measure value satisfies a specified minimum threshold (the iceberg condition / minimum support).

  • Only cells meeting a condition such as count >= min_sup or sum(sales) > threshold are stored.
  • Cells below the threshold (typically the vast majority in sparse data) are discarded.
  • The name "iceberg" reflects that only the significant "tip" is materialized, while the large insignificant bulk stays hidden.
  • Benefit: Greatly reduced storage and computation while retaining the useful (frequent/significant) aggregates.

Comparison

FeatureFull CubeIceberg Cube
Cells/cuboids storedAll ($2^n$ cuboids, all cells)Only cells above threshold
Memory usageVery highSignificantly reduced
Query speedFastFast for significant cells
Best use caseLow dimensionalityLarge, sparse, high-dimensional data

Summary

For 5-dimensional data there are $2^5 = 32$ possible cuboids. A full cube precomputes all 32 cuboids (high storage cost), whereas an iceberg cube materializes only cells whose measure exceeds a minimum threshold, saving substantial space and computation.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.