|
Algorithm 3 Safety inspection of a frontier cell |
|
Require: empty cell position , size of window for detecting safe frontier cells ,
|
|
Ensure:
|
| 1: function
Inspect-Safe-Frontier-Cell(, , ) |
| 2:
|
| 3:
|
| 4:
|
| 5: for
to
do
|
| 6: for
to
do
|
| 7: if
then
|
| 8:
|
| 9: else if
then
|
| 10:
|
| 11: end if
|
| 12: end for
|
| 13: end for
|
| 14: if
and
then
|
| 15:
|
| 16: end if
|
| 17: return
|
| 18:
end function
|