Repository navigation
Conversation
Base automatically changed from
irregular-periodic-packings-time-limit
to
master
November 25, 2026 22:39
Each new periodic block was checked against all the blocks kept so far, which is quadratic in the number of blocks. For the blocks of a single item type, a block with n copies is dominated iff a block with at least n copies is not larger in both dimensions. For each item type and each number of copies n, the blocks with at least n copies are now stored as the Pareto front of their dimensions (a staircase), so a dominance check is a single lookup. The blocks kept are the same as before.
fontanf
force-pushed
the
irregular-periodic-blocks-dominance
branch
from
November 25, 2026 22:51
619536b to
169931d
Compare
This branch has not been deployed
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.
Depends on #891 (based on its branch).
Each new periodic block was checked against every block kept so far, so the cost grows quadratically with the number of blocks. On Cheng from Costa, Gomes & Oliveira (2009) there are 67,759 blocks, and this check took most of the 76.5 s spent building them.
A block of a single item type with n copies is dominated iff some block of the same item type with at least n copies is no larger in either dimension. The new
NonDominatedBlocksclass keeps, for each item type and each copy count n, the Pareto front of the dimensions of the blocks with at least n copies. This front is a staircase, stored in astd::mapfrom bx to by.The blocks kept are the same as before: 67,759 on Cheng, and the solutions found are unchanged.