Skip to content

Fix #426: SubsetSum -> CapacityAssignment reduction#799

Closed
zazabap wants to merge 1 commit intomainfrom
issue-426-subsetsum-capacityassignment
Closed

Fix #426: SubsetSum -> CapacityAssignment reduction#799
zazabap wants to merge 1 commit intomainfrom
issue-426-subsetsum-capacityassignment

Conversation

@zazabap
Copy link
Copy Markdown
Collaborator

@zazabap zazabap commented Mar 28, 2026

Summary

Implements the SubsetSum -> CapacityAssignment reduction rule from Garey & Johnson SR7 (Van Sickle and Chandy, 1977).

Each element becomes a communication link with 2 capacities. The delay budget constraint forces the assignment to mirror a valid subset-sum solution, and the minimum cost equals B iff a subset summing to B exists.

Fixes #426

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.85%. Comparing base (f29cfb1) to head (9c2e072).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #799   +/-   ##
=======================================
  Coverage   97.85%   97.85%           
=======================================
  Files         625      625           
  Lines       68311    68311           
=======================================
  Hits        66846    66846           
  Misses       1465     1465           

☔ 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.

@zazabap zazabap closed this Mar 28, 2026
@GiggleLiu GiggleLiu deleted the issue-426-subsetsum-capacityassignment branch April 12, 2026 00:53
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.

[Rule] Subset Sum to Capacity Assignment

1 participant