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.46%. Comparing base (b1aa896) to head (caac2c9).

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.45%   76.46%           
- Complexity     5985     5993    +8     
=========================================
  Files           716      717    +1     
  Lines         20265    20299   +34     
  Branches       3929     3938    +9     
=========================================
+ Hits          15494    15522   +28     
- Misses         4180     4182    +2     
- Partials        591      595    +4     

☔ 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 4 times, most recently from 08d5cc5 to 0c47828 Compare October 6, 2025 13:12
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