Given a spatial dataset representing obstacles, write an algorithm to find the safest path in the most efficient way possible at Autonomous Solutions.