Open manpen opened 1 year ago
Hi Manuel,
Thank you for opening this issue. I ran your example on my machine, and can confirm that the solver finds a suboptimal contraction sequence. From the (limited) debug information, it seems that the solver find a lower bound of 4, and hence declares that the solution is optimal. However, the lower bound recursively uses the branch and bound algorithm, so I'm not sure where the problem lies.
A first step towards debugging: I tried turning off kernelization, and the problem persists, hence the problem does likely not come from that part. However, the issue seems to disappear when always going into the "large graphs branch", which also uses the "dense graphs" algorithm in the lower bound. But in that case, the lower bound never finds a value of 4.
I would be lying if I said I will have time to look into this in the near future, so if you are willing to investigate it, you are welcome to do so ! Otherwise, I will do it... later.
Thank you for raising the issue anyway,
Best,
Gabriel
Hi Gabriel,
thank you for your feedback. It's too bad, I hoped I just made an easily fixable mistake when deploying the solver :(
Currently the bug is no show stopper for me, since the vast majority of contraction sequences are correct and I consider only solutions that have been solved by multiple independent algorithms anyhow --- therefore the buggy ones can be easily discarded.
Unfortunately I, too, won't have the time to debug the issue.
Best, Manuel
Dear Gabriel Bathie,
thank you for providing this interesting solver! I'm currently trying to build an archive of solved twin width instances. While doing so, I noticed that ---on my machine---
tinywidth
occasionally produces correct contraction sequences with suboptimal twin-width. You can find a collection of test instances here. Each file includes the optimal twin width (as computed by multiple solvers) in its filename.Below is a log of instances
tinywidth
produces suboptimal results on my machine (wheretww exp
is the expected twin width andtww comp
the tww computed bytinywidth
).Could you please check whether you can reproduce these computations or whether I inadvertently introduced a bug during compilation. For your convenience I attached the first graph directly to this issue n015_m0053_tww003_ba03f68e185844a2.txt
Thank you and best, Manuel (Penschuck)