Add script to calculate specializations using dynamic programming#341
Merged
Conversation
LorenzSchueler
force-pushed
the
lorenz/dynamic-programming-specs
branch
2 times, most recently
from
February 6, 2026 09:55
2d86e85 to
c87c1bc
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
b-scholz
suggested changes
Feb 9, 2026
ihtefyw
reviewed
Feb 16, 2026
ihtefyw
previously approved these changes
Feb 16, 2026
LorenzSchueler
force-pushed
the
lorenz/dynamic-programming-specs
branch
from
February 17, 2026 08:40
a7d7b11 to
4de136e
Compare
LorenzSchueler
force-pushed
the
lorenz/dynamic-programming-specs
branch
from
February 17, 2026 08:58
4de136e to
52e74a6
Compare
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.
This PR adds a Python script to compute the best node specializations based on node counts obtained from the statistics module using a dynamic programming approach.
It produces the same results as the ILP implementations, but for
num_specializations >= 4it is significantly faster.I did not incorporate this into the existing script, because the used data types are different. This can be done in another PR if needed.
The output looks like this:
This is the output when
DEBUGandPRINT_TABLEare set toTrue