Giter Site home page Giter Site logo

bdd-zdd's Introduction

BDD / ZDD

BDD とは?

二分決定グラフ (Binary Decision Diagram; BDD) は,木構造によって論理関数を表すデータ構造である.

論理関数は,変数が $n$ 個あれば,深さが $n$ の二分木で必ず表現することができるが,これを加法標準形のような形に圧縮するのが BDD. ZDD (Zero-suppressed BDD) は,関数を組み合わせ集合と見た場合,すなわち加法標準形の負リテラルを削ぎ落としたバージョンの BDD.

BDDとZDDの図

圧縮方法

  • {0, 1} のどちらの行き先も同じノード(同じ変数ではない)を持つノードは削除することができる
  • 任意の枝 b in {0, 1} に対して,b の行き先が同じノードを持つ 2 つのノードは1つにまとめることができる.

ZDD固有の圧縮方法

  • 1-枝が 0 (0を意味する葉) を指すノードを削除する.そのノードに入力されている矢印を,ノードの0-枝の先に接続する.

圧縮ルールのイメージ

参考

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.