Q-learning-based unmanned aerial vehicle path planning with dynamic obstacle avoidance