Heuristic 1 (H1): |
1 DO 2 // build a subset for nt 3 ; 4 DO 5 ;//find the set of leaf nodes 6 IF 7 ; 8 BREAK; 9 END IF 10 ;//find the nearest node 11 IF 12 ; 13 CONTINUE; 14 END IF 15 WHILE 16 IF 17 CONTINUE; 18 END IF 19 ; 20 WHILE P == n + 1 |
Heuristic 1 (H1): |
1 DO 2 // build a subset for nt 3 ; 4 DO 5 ;//find the set of leaf nodes 6 IF 7 ; 8 BREAK; 9 END IF 10 ;//find the nearest node 11 IF 12 ; 13 CONTINUE; 14 END IF 15 WHILE 16 IF 17 CONTINUE; 18 END IF 19 ; 20 WHILE P == n + 1 |