|
Algorithm 2: Area Division: Calculate
|
|
Require:
|
|
Ensure:
|
| 1:
|
| 2:
|
| 3: while do
|
| 4:
|
| 5:
T
|
| 6:
|
| 7: repeat
|
| 8:
|
| 9:
|
| 10: for
do
|
| 11: if
and
then
|
| 12:
|
| 13: end if
|
| 14: end for
|
| 15: for
do
|
| 16: for
to
do
|
| 17:
|
| 18:
|
| 19: for
do
|
| 20: if
then
|
| 21:
|
| 22: end if
|
| 23: end for
|
| 24:
|
| 25: if and
and
then
|
| 26:
|
| 27: end if
|
| 28: end for
|
| 29: if
then
|
| 30:
|
| 31: end if
|
| 32: end for
|
| 33:
|
| 34: until
|
| 35:
|
| 36: end while
|