Add A* Search Algorithm for Weighted Graph Pathfinding#7374
Open
surajdm123 wants to merge 2 commits intoTheAlgorithms:masterfrom
Open
Add A* Search Algorithm for Weighted Graph Pathfinding#7374surajdm123 wants to merge 2 commits intoTheAlgorithms:masterfrom
surajdm123 wants to merge 2 commits intoTheAlgorithms:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7374 +/- ##
============================================
+ Coverage 79.47% 79.54% +0.07%
- Complexity 7090 7152 +62
============================================
Files 791 797 +6
Lines 23202 23412 +210
Branches 4565 4604 +39
============================================
+ Hits 18439 18624 +185
- Misses 4024 4050 +26
+ Partials 739 738 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces an implementation of the A* (A-Star) search algorithm for weighted graph pathfinding, added under the existing search algorithms module.
The A* algorithm is a widely used heuristic-based search technique that combines the benefits of Dijkstra’s algorithm and greedy best-first search to efficiently compute optimal paths in weighted graphs.
Why this addition is useful
A* is a foundational algorithm used in:
Adding this algorithm improves the completeness of the search algorithms module by covering heuristic-based informed search techniques, complementing existing BFS, DFS, and uninformed search implementations.
Testing
Checklist
clang-format -i --style=file path/to/your/file.java