r/AskComputerScience • u/Particular_Dig_6495 • Feb 26 '26
3sat "deterministic" solvers remain exponential?
Hello. I am a (french) amateur and uneducated in CompSci, please forgive me for my naïve question.
I spend about a year trying to solve 3 sat problems for fun and found by luck a way to solve
simple problems in a deterministic way (counting variables, applying a rule to each clauses and rectifying the "false/unchecked" clauses by a simple rule) which was very successful with low constraint ratios. Unfortunately not successful with satlib Solvable problems.
I discussed this fact with a probabilistic mathematician friend who explained to me I could imagine "hidden configurations" which made it so my solver would "loop" infinitely.
From what I understand, the more a variable is present in a 3 sat problem, the closest you are from an unsolvable problem, and clauses become more and more interlinked.
I don't have much knowledge in all of this, I feel I understand the logic but I was wondering if there are logic ways to overcome in a determinstic way these hidden loops.
My friend allso told me deterministic algorithms for solving Np-complete problems stay exponential in nature, which I don't really understand.
When I see how my algorithm works, it actually seems to lower the amount of procedures compared to random ( it loops in a smaller amount of variables than random) and so I feel it may not be really exponential. If any one feels to explain to me how that is I would be very grateful :)
Have a good day :)
View all comments
Show parent comment
1
u/Particular_Dig_6495 Feb 26 '26
Thanks ! The solver I "made" actually "worked" in a medium to low ratio. like 200 variables for 1000 clauses, or 100 variables for 400 clauses. But when i tried the hard ones (uf100 - 430) on satlib for example, it looped each times on 1-10 clauses.
I was actually asking these questions for two reasons. First to educate myself, but I've also compared the time of calculation with other solvers on a few "medium instances" and it is actually very competitive in the initialisation / preprocessing phase with actual solvers. The same for the "hard instances", the looping point is way faster than the preprocessing of Kissat or Minisat.
it's average 220 µs - Kissat & Minisat average 15 ms.
I think my solver works to a point, but is stuck.
I'm not good enough in compsci or programming to go further with my simple newbie algo, but i was curious to understand the "limits" of deterministic approaches to this specific problem. I hope my answer makes sense?
This is just a naïve project that will find it's way to the bin anyways, but there are allready lots of cool answers, thanks for your answer aswell :)