Git Product home page Git Product logo

Comments (3)

ebhardjan avatar ebhardjan commented on June 11, 2024

This is not worth it!
Right now problems that take more than a second to solve fit nicely into cache!
For instance 35 variables, 200 clauses, 3 variables per clause:

  • for the CNF object -> set of 200 clauses: 200*8 = 1.6 kB
  • for the 200 clause objects -> each a set of 3 variables: 200*3*8 = 4.8 kB
  • for each variable object -> 3 bools and 1 unsigned int: 200*3*(1+4) = 3 kB
    Total: 9.4 kB

Considering that even my 4 year old laptop has 128 kB of Level 1 cache, decreasing the size of the internal representation by about a factor of two is just not worth it.
The problem is the amount of computation that we do on the CNF objects...

I've added some improvements to the DPLL algorithm (pull request #22).
To improve the performance further we need a better algorithm -> CDCL!

from sat-solver.

ebhardjan avatar ebhardjan commented on June 11, 2024

@limo1996 and @ZiweiHuang94: let me know what you think

from sat-solver.

ZiweiHuang94 avatar ZiweiHuang94 commented on June 11, 2024

Really appreciate the improvement you did! Regarding further improving the performance (Try CDCL), I am not sure how much time is assumed to achieve it. Because we still need some time for the report and final presentation. I suppose performance analysis is also an important part.

from sat-solver.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.