Algorithm 1.
1: | |
2: | while ( and k < K) do |
3: | repeat |
4: | prand ← RANDOM_POINT_R3() |
5: | Qreach = ∅ |
6: | for all do |
7: | if REACHABLE(prand, qi) then |
8: | Qreach ← Qreach ⋃ qi |
9: | end if |
10: | end for |
11: | until Qreach = ∅ |
12: | qnear ← NEAREST_NEIGHBOR_R3(prand,Qreach) |
13: | |
14: | qnew ← NEW_STATE(qnear, u) |
15: | if VALID_EDGE(qnear, qnew, u) then |
16: | |
17: | |
18: | end if |
19: | k ← k + 1 |
20: | end while |
21: | return |