function [str] = genFW(data)

[x, y] = size(data);

impact = zeros(1,y-1);

for i = 1 : y-1
for j = 1 : x
impact(1, i) += data(j,y) * data(j,i);
end
end

str = zeros(1, (2*(y-1)) );


for i = 1 : (floor(y / 4))
[junk, ind] = max(impact);
impact(1, ind) = 0;
str((2 * ind) - 1) = 1;
end

for i = 1 : (floor(y / 2))
[junk, ind] = max(impact);
impact(1, ind) = 0;
str(2 * ind) = 1;
end