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

new_anti is badly designed #7

Open
BruJu opened this issue Jul 20, 2020 · 0 comments
Open

new_anti is badly designed #7

BruJu opened this issue Jul 20, 2020 · 0 comments

Comments

@BruJu
Copy link
Owner

BruJu commented Jul 20, 2020

https://github.com/BruJu/Portable-Reasoning-in-Web-Assembly/blob/531e17b21383fcffd5bb2d4f92f39ebee2cbe195/bjdatasets/src/treeddataset.rs#L42

In intent, new_anti builds a tree that prioritizes the indexes that are the inverse of the one used by the RDFJS match function.

The purpose is to fill the produced tree in "random" order to avoid having a tree of height number of elements / 2B.

The current design fails to do so because quads sorted in SPOG order, filled in a OGSP tree, where every S and P are the same produces the same tree as in a SPOG tree (the important thing is to not sort by O then G but by G then O)

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

No branches or pull requests

1 participant