Skip to main content
. 2022 Mar 19;24(3):426. doi: 10.3390/e24030426
Algorithm 7 Deep-first algorithm.
  • 1:

    Initial start state

  • 2:

    if no obstacles ahead

  • 3:

       Move ahead

  • 4:

    elseif no obstacles on the left

  • 5:

       Move left

  • 6:

    else

  • 7:

       Move right