Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize rules with shared prefixes #21

Open
robsimmons opened this issue Jun 5, 2024 · 0 comments
Open

Optimize rules with shared prefixes #21

robsimmons opened this issue Jun 5, 2024 · 0 comments

Comments

@robsimmons
Copy link
Owner

If we have two rules

a :- c X, c Y, c Z, d X Y Z.
b :- c X, c Y, c Z, e Y X Z.
f :- c X, c Y.

then we're going to have three indexes storing all pairs of items in c, one for every rule, and two indexes storing all triples of items from c, one for the first two rules. Optimizing the binarized program would allow us to notice and avoid these redundancies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant