|
Algorithm 2 SFDM1
|
-
Input:
Stream , distance metric , parameter , size constraints ()
-
Output:
A set s.t. for
-
▹
Stream processing
-
1:
-
2:
Initialize for every and
-
3:
for all do
-
4:
Run Lines 3–6 of Algorithm 1 to update w.r.t. x
-
5:
if then
-
6:
Run Lines 3–6 of Algorithm 1 to update w.r.t. x with size constraint
-
▹
Post-processing
-
7:
-
8:
for all do
-
9:
if for some then
-
10:
while do
-
11:
-
12:
-
13:
while do
-
14:
-
15:
-
16:
return
|