-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature / Generators and Iterators (instad of Files) in API #537
Conversation
This is an extremely niche builder feature. I would rather revert this commit and fix everything, when there is a need for it.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #537 +/- ##
=============================================
- Coverage 97.124% 97.101% -0.023%
=============================================
Files 82 81 -1
Lines 5632 5588 -44
=============================================
- Hits 5470 5426 -44
Misses 162 162
☔ View full report in Codecov by Sentry. |
This way, the end user can plug in their own data structures without any need to spend linear time and I/Os on first writing it to a file. Somehow the user is able to compute these values, so they may as well do so on-the-fly as our algorithms need it
Since we (1) may have to read the input in reverse or (2) we need to retrieve from two different places (once for the priority queue and once for the algorithm), we still copy the entire input into a file. Hopefully, we can find a better solution some other day.
855b67c
to
125ebba
Compare
System tests are breaking, because of the Adiar adapter uses the broken part of the API (specifically, it uses |
These are mere aliases for 'bdd_true()' and 'bdd_false()', but we add these to create consistency with the to-be added ZDD versions
This specifically is to address the suddenly missing feature with the prior breaking change to 'zdd_powerset(...)' not being able to take the global domain as an input. This is (arguably?) an even prettier solution.
125ebba
to
6477cd1
Compare
Benchmark Report 🟢
Minimum running time (s) for 9-Queens:
|
Benchmark Report 🟢
Minimum running time (s) for 12-Queens:
|
Benchmark Report 🟢
Minimum running time (s) for 14-Queens:
|
Closes #532 by removing any occurence of
adiar::shared_file<label_t>
in the public API. This also removesbdd_counter
andzdd_sized_set
until I have found a way to implement them anew.