|
Algorithm 1 Pseudo-code of the algorithm to compute Q
|
| Input: |
| FCN, (number of nodes in FCN), and A ( in FCN). |
| Output: |
| Print the Q. |
-
1:
= 0, = 0;
-
2:
for to
do
-
3:
= 0; //
-
4:
for
to
do
-
5:
+= ; //
-
6:
if
then
-
7:
-
8:
end if
-
9:
end for
-
10:
end for
-
11:
for to
do
-
12:
for
to
do
-
13:
if
then
-
14:
;
-
15:
end if
-
16:
end for
-
17:
end for
-
18:
;
-
19:
print Q;
|