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

Reordering shows no effect. #44

Open
hoemich opened this issue Aug 25, 2023 · 3 comments
Open

Reordering shows no effect. #44

hoemich opened this issue Aug 25, 2023 · 3 comments

Comments

@hoemich
Copy link

hoemich commented Aug 25, 2023

The BDDFactory.reorder(...) seems to have no effect.

bddLib.bddFactory.reorderVerbose(3);
bddLib.bddFactory.reorder(...);
System.out.println(bddLib.bddFactory.reorderstats);

shows some activity, but the variable ordering does not change.
At first I thought, it might be, because my variable ordering is already pretty good, yet changing the variable ordering manually (using setVarOrder()) to a new random variable ordering often reduces the size by 100 - 300%

Is there anything to know about the variable ordering?
Is it not (yet) implemented?
Is it buggy?

What more detail do you need?

@dhendriks
Copy link
Member

To be honest, I don't know. This GitHub repo is a fork of the original JavaBDD from SourceForge, so I didn't write the library. I only use JavaBDD in the Eclipse ESCET project. There, we don't let JavaBDD determine the variable order, but we have algorithms of our own to do so.

@hoemich
Copy link
Author

hoemich commented Aug 27, 2023

This makes sense. Apparently, with the original JavaBDD, I have the same issues. Do you predetermine the order prior to the BDD-creation, or do you actively reorder variables, as you build the BDD/after building the BDD?

@dhendriks
Copy link
Member

I use a predetermined order, no reordering once BDDs are created.

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

No branches or pull requests

2 participants