|
Algorithm 2 Update Group Tree |
-
1:
function()
-
2:
if , , otherwise
-
3:
, ,
-
4:
return
,
-
5:
end function
-
6:
function()
-
7:
-
8:
while current node is not the root do
-
9:
the of ’s parent is , the of ’s parent is its
-
10:
, let move to the parent of
-
11:
end while
-
12:
return
-
13:
end function
-
14:
function()
-
15:
-
16:
while
do
-
17:
,
-
18:
end while
-
19:
return
-
20:
end function
|