Near-Optimal Motion Planning Algorithms Via A Topological And Geometric Perspective