Algorithm 1.
1: | , with initialized to 1 |
2: | |
3: | initialized to 1 |
4: | initialized to 0 |
5: | for do: |
6: | for do: |
7: | for do: |
8: | |
9: | for do: |
10: | for do: |
11: | |
12: | for do: |
13: | |
14: | |
15: | |
16: | return |
1: | , with initialized to 1 |
2: | |
3: | initialized to 1 |
4: | initialized to 0 |
5: | for do: |
6: | for do: |
7: | for do: |
8: | |
9: | for do: |
10: | for do: |
11: | |
12: | for do: |
13: | |
14: | |
15: | |
16: | return |