Which is better for pathfinding: greedy search vs BFS? Pros and cons? or Greedy search vs BFS—when wo

14 Replies, 1747 Views

Greedy search vs BFS is a classic tradeoff. BFS guarantees optimality, but greedy can be *way* faster if you’re okay with suboptimal results.

Pro tip: If you’re using Python, `networkx` lets you implement both super easily.

But seriously, greedy search can fail *hard* if your heuristic’s misleading. Seen it happen in robotics—robot just spins in circles chasing a bad estimate.

Messages In This Thread



Users browsing this thread: 1 Guest(s)