Optimal algorithm design for transfer path planning for unmanned aerial vehicles