Skip to content

AI BASED SIMULATION FOR NAVIGATION OF PATH FINDING AND AVOIDANCE

Notifications You must be signed in to change notification settings

TrishankV/AISNPFA

Repository files navigation

AI BASED SIMULATION FOR NAVIGATION OF PATH FINDING AND AVOIDANCE

This project focuses on simulating AI-based navigation for pathfinding and avoidance using various algorithms. The primary goal is to compare and contrast different algorithms to determine their effectiveness in real-world scenarios.

Pathfinding Algorithms

Breadth-First Search (BFS) Pros:

Guarantees the shortest path in an unweighted graph. Well-suited for finding paths in small grids or maps. Always explores the closest nodes first, leading to fewer unnecessary steps. Cons:

Memory-intensive for larger graphs due to its breadth-first nature. May not perform optimally in situations where the shortest path is long. Depth-First Search (DFS) Pros:

Memory usage is typically lower compared to BFS. Can be effective in finding paths that go deep before going wide. Suitable for situations where the path length is not critical. Cons:

Doesn't guarantee the shortest path. Can get stuck in infinite loops or long paths if not properly implemented. A* Algorithm Pros:

Utilizes both actual cost (g) and heuristic (h) to estimate the total cost (f), resulting in efficient pathfinding. Guarantees the shortest path under certain conditions. Well-suited for scenarios where performance is crucial. Cons:

Requires a consistent and admissible heuristic for optimal results. May not be the best choice for graphs with irregular costs or terrain. Dijkstra's Algorithm Pros:

Finds the shortest path in a weighted graph. Can be used to find the shortest path even when there are negative weights, as long as there are no negative cycles. Suitable for scenarios where the actual cost matters more than the heuristic. Cons:

May not be the most efficient choice for graphs with lots of nodes and edges. Doesn't consider heuristics, which might lead to suboptimal paths. Conclusion

Each pathfinding algorithm discussed here has its own strengths and weaknesses. The choice of algorithm depends on the specific requirements of your project. BFS and DFS are useful for simpler scenarios, while A* and Dijkstra's Algorithm provide more sophisticated solutions for weighted graphs. Consider your project's needs, the nature of the graph, and the computational resources available when selecting the appropriate algorithm.

About

AI BASED SIMULATION FOR NAVIGATION OF PATH FINDING AND AVOIDANCE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published