




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















CURE Algorithm
Clustering Streams
Problem with BFR/
-means:
Assumes clusters are normally distributedin each dimension.
And axes are fixed --- ellipses at an angleare
not
OK.
Assumes a Euclidean distance.
Allows clusters to assume any shape.
Pick a random sample of points that fitin main memory.
Cluster these points hierarchically ---group nearest points/clusters.
For each cluster, pick a sample ofpoints, as dispersed as possible.
From the sample, pick representativesby moving them (say) 20% towardthe centroid of the cluster.
e
e
e
e
e
e
e
e
e
e
e
h
h
h
h
h
h
h
h
h h
h
h
h
salary
age
e
e
e
e
e
e
e
e
e
e
e
h
h
h
h
h
h
h
h
h h
h
h
h
salary
age
Move points(say) 20%toward thecentroid.
Now, visit each point
in the data set.
Place it in the “closest cluster.”
Normal definition of “closest”: that clusterwith the closest (to
p
) among all the
sample points of all the clusters.
BDMO = Babcock, Datar, Motwani, O’Callaghan.
–means based.
Can use less than O(
) space for
windows of size
Generalizes trick of DGIM: buckets of increasing “weight.”
Maintains a sequence of buckets B
1
2
Buckets have timestamps (most recent stream element in bucket).
Sizes of buckets nondecreasing.
In DGIM size = power of 2.
Either 1 or 2 of each size.
In place of “size” (number of 1’s) we use (an approximation to) the sum ofthe distances from all points to thecentroid of their cluster.
Merge consecutive buckets if the “size” of the merged bucket is less than thesum of the sizes of all later buckets.
In a stable list of buckets, any two consecutive buckets are “bigger” thanall smaller buckets.
Thus, “sizes” grow exponentially.
If there is a limit on total “size,” then the number of buckets is O(log
N
= window size.
E.g., all points are in a fixed hypercube.
Each bucket consists of clusters atsome number of levels.
4 levels in our examples.
Clusters represented by:
Location of centroid.
Weight
= number of points in the cluster.
Cost
= upper bound on sum of distances
from member points to centroid.
Actions determined by
(window size)
and
(desired number of clusters).
Also uses a tuning parameter
for
which we use 1/4 to simplify.
1/
is the number of levels of clusters.
A single point
is represented by
That is:
A point is its own centroid.
The cluster has one point.
The sum of distances to the centroid is 0.
Needed in two situations:
We have to process a query, whichrequires us to (temporarily) merge sometail of the bucket sequence.
We have just added a new (most recent)bucket and we need to check the ruleabout two consecutive buckets being“bigger” than all that follow.