Giter VIP home page Giter VIP logo

libfes-lite's Introduction

libfes-lite v1.1 (a.k.a. "12-years edition", a.k.a. "Omicron BA.5 edition")

Lighter, leaner, meaner and faster.

libfes-lite is a library for solving systems of quadratic boolean equations by exhaustive search. It runs in time exponential in the number of variables, but the constant is very low.

Some care has been put into checking that libfes-lite produces corrects results, and there is a somewhat extensive test suite. However, it comes WITHOUT WARRANTY OF ANY KIND, and in particular, without the garantee that it finds correct solutions in all cases.

Build instructions

Building requires cmake. Building out-of-source is recommended

  • mkdir build
  • cd build
  • cmake ..
  • make
  • (run the test suite) make check

Demo and benchmarks

The benchmark/ folder contains code that exercices the library. If you just want to solve quadratic boolean systems, then use:

  • benchmark/demo.c : full-blown program that solves a larger system of quadratic equations using all available cores Example:
# ./demo < examples/random_40_quad.in

If you want to understand how the whole thing works, and/or benchmark stuff, take a look at :

  • benchmark/correct_use.c : demonstrates how to use the library
  • benchmark/speed.c : benchmarks all available kernels

Input format

This code parses polynomial systems modulo 2 in the following format:

  • Lines begining by a # are ignored.
  • Spaces, tabs, etc. are ignored.
  • The first non-comment line contains the names of all variables, separated by commas. This implicitly numbers them. The first variable has number 0.
  • Each subsequent lines describe a polynomial.
  • A polynomial is a sum of monomials, separated by +
  • A monomial is either 0, 1, a single variable, or a product of several variables separated by *.

(It follows that an empty line denote the zero polynomial).

libfes-lite's People

Contributors

cbouilla avatar rusydi avatar

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.