Giter Club home page Giter Club logo

jbdd's Introduction

JBDD

Build Status

JBDD (Java Binary Decision Diagrams) is (yet another) native implementation of (Reduced Ordered) BDDs in Java. It is loosely inspired by JDD, but completely rewritten from scratch, since JDD contained some bugs and was missing features like, for example, substitution. The design goals are simplicity, performance, and no dependencies.

Performance

Internally, JBDD does not use any objects, only primitive arrays, and uses manual memory management. JBDD also provides an object-oriented interface with automatic reference management through weak references (instead of finalize(), which has a hefty performance penalty). The overhead incurred by the object-oriented interface largely depends on the number of referenced objects, but was hardly measurable in several synthetic benchmarks.

Compared to other libraries, JBDD beats most Java implementations and even is on-par or faster than established, C-based libraries such as BuDDy. (Measured on several synthetic benchmarks.)

Features

Some more fancy BDD features and variants are missing. Most notably, these are ZDDs, MTBDDs, and variable reordering. They might get added over time, but if you require such features, consider using optimized implementations like CUDD, BuDDy or Sylvan instead.

Usage

You can either build the jar using gradle (see below) or fetch it from maven central:

<dependency>
  <groupId>de.tum.in</groupId>
  <artifactId>jbdd</artifactId>
  <version>0.6.0</version>
</dependency>

and for gradle:

// https://mvnrepository.com/artifact/de.tum.in/jbdd
implementation("de.tum.in:jbdd:0.6.0")

Building

Build the project using gradle. All dependencies are downloaded automatically.

$ ./gradlew build

Or, if you are on windows,

# gradlew.bat build

Referencing

If you use JBDD for your experiments, I would appreciate a citation akin to the following.

@misc{jbdd,
    author = {Tobias Meggendorfer},
    title = {{JBDD}: A Java {BDD} Library},
    howpublished = "\url{https://github.com/incaseoftrouble/jbdd}",
    year = 2017
}

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.