Skip to content

Conversation

Priyanshu1303d
Copy link
Contributor

Added the Dial's Algorithm implementation (DialsAlgorithm.java) to the datastructures/graphs package. This algorithm is an efficient optimization of Dijkstra's, making it suitable for specific use cases where edge weights are small non - negative integers.

  • I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md).
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted correctly.

I noticed there are a couple of different directories for graph algorithms. I've placed this implementation in src/main/java/com/thealgorithms/datastructures/graphs/

However, if you would prefer it in another location (like src/main/java/com/thealgorithms/graph/), please let me know, and I would be happy to move it!

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 88.23529% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.62%. Comparing base (c691b31) to head (714caff).

Files with missing lines Patch % Lines
...gorithms/datastructures/graphs/DialsAlgorithm.java 88.23% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6679      +/-   ##
============================================
+ Coverage     76.60%   76.62%   +0.01%     
- Complexity     6026     6034       +8     
============================================
  Files           719      720       +1     
  Lines         20326    20360      +34     
  Branches       3937     3946       +9     
============================================
+ Hits          15571    15601      +30     
- Misses         4164     4165       +1     
- Partials        591      594       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Priyanshu1303d Priyanshu1303d force-pushed the feat/DialsAlgorithm branch 6 times, most recently from caac2c9 to cdf6b95 Compare October 10, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants