|
Reason:
|
|
|
|
|
We can exploit this result to:
|
The is the gist (key) of the Defer-Count technique...
S = Scaled-Sample(R) using a suitable probab p; F = select f most frequent items in S; |
|
|
/* ------------------------------------------------------
Allocate more counters for potentially heavy elements
------------------------------------------------------ */
S = Scaled-Sample(R) with any probab p;
for ( each e ∈ S )
{
Mark A[e] as potentially heavy;
Allocate m2 counter to A[e];
}
|
|
|
S = Scaled-Sample(R) with any probab p;
for ( each e ∈ S )
{
Mark A[e] as potentially heavy;
Make A[e] point to the common pool of counters;
}
|
|
|