|
Algorithm 2 Frontier cell detection |
|
Require:
,
|
|
Ensure:
|
| 1: function
Detect-Frontier-Cell(, ) |
| 2: set
|
| 3: set
|
| 4: for all
do
|
| 5: if
then
|
| 6:
|
| 7: end if
|
| 8: end for
|
| 9:
|
| 10:
|
| 11:
|
| 12: for all
do
|
| 13: if
then
|
| 14: ←Inspect-Safe-Frontier-Cell
|
| 15: end if
|
| 16: end for
|
| 17: return
|
| 18:
end function
|