Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
The size of the family is no more than two times the size of base tree. Usually, the total size of the derived
trees is just a very small fraction of the base tree. Of course, more sophisticated approaches like cost-based
algorithms are also possible. The algorithm of rolling-up the largest dimension one after another is greedy
in terms of the size reduction of the new derived tree. Without lose of generality, for numerical attributes in
our examples of this subsection, they are grouped into equal-size segments except the last one that may be
smaller.
1
2
3
4
5
6
7
8
9
10
Setup base tree T0 by scanning input data;
Save T0 to ST Repository;
Save its parameters to Metadata Repository;
T= T0;
Repeat {
Find the dimension with largest cardinality in T;
Rollup that dimension to generate a new derived Tree T;
Save T to ST Repository;
Save the parameters of T to Metadata Repository;
} Until (stop conditions);
Figure
Example 5.1
Suppose the base tree T0 has three dimensions whose sizes are 100,100, and 100. Each dimension can be
grouped ten by ten to form two-level hierarchies. The cardinalities of base tree T0 are 101,101,101.
T1 is the result of rolling up the third dimension in T0, therefore, have cardinalities 101,101,11.
T2 is the result of rolling up the second dimension in T1, its cardinalities are 101,11,11.
T3 is the result of rolling up the first dimension in T2, its cardinalities are 11,11,11.
T1, T2, T3 are derived trees. Together with base tree T0, they form a family.
5.2. Computing a New Derived Tree from Existing Trees
The base tree is setup during the initialization of ST described in Section 2. Except the first one which is
computed from the base tree, a new derived tree is computed from an existing one by merging some subtrees in the old tree. Before introducing this new roll-up algorithm, we give a definition for a new operator
âï
â on STs as follows.
Definition: Two STs are isomorphic if they are identical except the values of their leaves i.e. they have the
same structure. All pairs of corresponding nodes in two isomorphic STs have the same degree.
Definition: The summation S of two isomorphic STs S1, S2 is a new ST that has the same structure of S1
or S2 (i.e. isomorphic to them) but its leaf values are the summation of the corresponding leaf values (i.e.
they are of the same position) of S1 and S2. Their relationship is denoted by S=S1ï
S2.
17