Java icon indicating copy to clipboard operation
Java copied to clipboard

Solved TravelingSalesManProblem Using DynamicProgramming(memoization)

Open Sujal1804 opened this issue 1 year ago • 2 comments

In the above code, we implement a solution to the Traveling Salesman Problem (TSP) using dynamic programming with memoization. The algorithm calculates the shortest possible route that visits a set of cities exactly once and returns to the starting city by recursively exploring all possible paths and storing the results of subproblems to avoid redundant calculations. The program outputs both the minimum cost of the tour and the optimal path taken.

  • [ ] I have read 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 with clang-format -i --style=file path/to/your/file.java

Sujal1804 avatar Oct 09 '24 20:10 Sujal1804

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 66.73%. Comparing base (bae7f89) to head (3a0caee). Report is 33 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5687      +/-   ##
============================================
+ Coverage     64.10%   66.73%   +2.63%     
- Complexity     4195     4484     +289     
============================================
  Files           586      608      +22     
  Lines         16372    16913     +541     
  Branches       3158     3264     +106     
============================================
+ Hits          10495    11287     +792     
+ Misses         5448     5180     -268     
- Partials        429      446      +17     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Oct 09 '24 20:10 codecov-commenter

Hi I have made the changes mentioned by you pls accept the changes

Sujal1804 avatar Oct 13 '24 10:10 Sujal1804

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!

github-actions[bot] avatar Nov 16 '24 00:11 github-actions[bot]

Please reopen this pull request once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution!

github-actions[bot] avatar Nov 23 '24 00:11 github-actions[bot]