Skip to content

feat(pumpkin-constraints): Improve Table encoding - #673

Open
ImkoMarijnissen wants to merge 2 commits into
mainfrom
feat/improved-table-encoding
Open

ImkoMarijnissen wants to merge 2 commits into
mainfrom
feat/improved-table-encoding

Conversation

@ImkoMarijnissen

Copy link
Copy Markdown
Contributor

Currently, the table encoding is somewhat inefficient, leading to an overhead, especially on unison and yumi-dynamic instances (and most likely on XCSP3) instances.

This PR addresses this by changing the encoding so that:

  1. Duplicate rows are removed.
  2. Rows which contain values which are outside of the domain of the variable are removed (this can happen due to MiniZinc pre-processing).
  3. When a row contains a value which occurs only in that row, then the predicate assigned to that value can be reused rather than creating a new row selector variable.

… remove duplicate rows + assign value to variable if it is the only value that occurs

This branch has not been deployed

No deployments
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.

1 participant