-
Input:
Stream , distance metric , parameter , window size , size constraints ()
-
Output:
A set s.t. for
-
▹
Stream processing
-
1:
-
2:
for all do
-
3:
Initialize
-
4:
for all do
-
5:
Initialize
-
6:
for all do
-
7:
Run Lines 5–16 of Algorithm 5 to update , , , and w.r.t. x
-
8:
if and ‘SWFDM1’ is used then
-
9:
Run Lines 5–16 of Algorithm 5 to update to update , , , and w.r.t. x under size constraint
-
10:
else if and ‘SWFDM2’ is used then
-
11:
Run Lines 5–16 of Algorithm 5 to update to update , , , and w.r.t. x under size constraint k
-
▹
Post-processing
-
12:
-
13:
for all and do
-
14:
if then
-
15:
-
16:
else if then
-
17:
-
18:
if and ‘SWFDM1’ is used then
-
19:
if then
-
20:
if then
-
21:
-
22:
else if then
-
23:
-
24:
Run Lines 10–15 of Algorithm 2 using and as input to find a fair solution
-
25:
else if ‘SWFDM2’ is used then
-
26:
for do
-
17:
if then
-
28:
-
29:
else if then
-
30:
-
31:
Run Lines 10–17 (with in Line 13) of Algorithm 3 using and as input to find a fair solution
-
32:
return
|