Example of the Algorithm
3, 5, 2, 7, 4, 2, b = 11
1
0
0
0
0
0
0
0
0
0
0
0
0 1 2 3 4 5 6 7 8 9 10 11
1
0
0
1
0
0
0
0
0
0
0
0
3
5
1
0
0
1
0
1
0
0
1
0
0
0
2
1
0
1
1
0
1
0
1
1
0
1
0
7
1
0
1
1
0
1
0
1
1
0
1
0
4
1
0
1
1
1
1
1
1
1
1
1
1
2
1
0
1
1
1
1
1
1
1
1
1
1
Previous slide
Next slide
Back to first slide
View graphic version