Content deleted Content added
No edit summary |
|||
Line 93:
int[] c = new int[array.length];
int[] t = new int[array.length];
b[0] = 1;
c[0] = 1;
int n = 0;
int l = 0;
int m = -1;
for (n = 0; n < array.length; n++) {
int d = 0;
for (int i = 0; i <= l; i++) {
d = d ^ (c[i] * array[n - i]); if (d
if (l <= n
l = n + 1 - l;
m = n;
b = t.clone();
}
}
Line 114 ⟶ 118:
}
</source>
==See also==
* [[Reeds-Sloane algorithm]], an extension for sequences over integers mod ''n''
|