Decision Diagrams Derivatives

Similar documents
Representations of Elementary Functions Using Binary Moment Diagrams

Binary Decision Diagrams

Exact Minimization of Fixed Polarity. Specied Functions. Debatosh Debnath and Tsutomu Sasao. Kyushu Institute of Technology

LINEAR TRANSFORMATION OF BINARY DECISION DIAGRAMS TROUGH SPECTRAL DOMAIN

DATA STRUCTURES FOR LOGIC OPTIMIZATION

Advanced Algebraic Algorithms on Integers and Polynomials

THE SUMMATION NOTATION Ʃ

The Synchronous 8th-Order Differential Attack on 12 Rounds of the Block Cipher HyRAL

Multilevel Logic Synthesis Algebraic Methods

International Journal of Mathematical Archive-3(3), 2012, Page: Available online through ISSN

Clock-Gating and Its Application to Low Power Design of Sequential Circuits

Introduction to Information Theory, Data Compression,

Speeding up Computation of Scalar Multiplication in Elliptic Curve Cryptosystem

PIECEWISE LINERIZATION OF LOGIC FUNCTIONS *

Calculation of time complexity (3%)

CHAPTER-5 INFORMATION MEASURE OF FUZZY MATRIX AND FUZZY BINARY RELATION

Multi-Valued Sub-function Encoding in Functional Decomposition Based on Information Relationships Measures

TOPICS MULTIPLIERLESS FILTER DESIGN ELEMENTARY SCHOOL ALGORITHM MULTIPLICATION

Plans. Memoryless plans Definition. Memoryless plans Example. Images Formal definition. Images. Preimages. Preimages. Definition

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

NP-Completeness : Proofs

Chapter - 2. Distribution System Power Flow Analysis

On the BDD of a Random Boolean Function

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results.

A New Design of Multiplier using Modified Booth Algorithm and Reversible Gate Logic

A Novel, Low-Power Array Multiplier Architecture

Example: (13320, 22140) =? Solution #1: The divisors of are 1, 2, 3, 4, 5, 6, 9, 10, 12, 15, 18, 20, 27, 30, 36, 41,

Design and Optimization of Fuzzy Controller for Inverse Pendulum System Using Genetic Algorithm

Hongyi Miao, College of Science, Nanjing Forestry University, Nanjing ,China. (Received 20 June 2013, accepted 11 March 2014) I)ϕ (k)

Exercises. 18 Algorithms

Application research on rough set -neural network in the fault diagnosis system of ball mill

X X. f 00. f 0. f 11. f 10. f 1. (b) pd. (a) S. (c) nd. f 110. f 101. f 010. f 011. f 01. f 100. f 000. f 111. f 001

Using the Minimum Set of Input Combinations to Minimize the Area of Local Routing Networks in Logic Clusters. FPGAs. Andy Ye Ryerson University

Numbers. Principles Of Digital Design. Number Representations

CSE4210 Architecture and Hardware for DSP

An efficient algorithm for multivariate Maclaurin Newton transformation

Problem Set 9 Solutions

Complement of Type-2 Fuzzy Shortest Path Using Possibility Measure

Uncertainty in measurements of power and energy on power networks

Inner Product. Euclidean Space. Orthonormal Basis. Orthogonal

n j c ij n i complement

Introduction. - The Second Lyapunov Method. - The First Lyapunov Method

Wavelet chaotic neural networks and their application to continuous function optimization

At ω = ω i every sub-plant defines a subtemplate. template T ωi is,

On the Multicriteria Integer Network Flow Problem

Hybrid Fuzzy Direct Cover Algorithm for Synthesis of Multiple-Valued Logic Functions

Performing Modulation Scheme of Chaos Shift Keying with Hyperchaotic Chen System

FUZZY GOAL PROGRAMMING VS ORDINARY FUZZY PROGRAMMING APPROACH FOR MULTI OBJECTIVE PROGRAMMING PROBLEM

Stanford University CS254: Computational Complexity Notes 7 Luca Trevisan January 29, Notes for Lecture 7

Calculating the failure intensity of a non-coherent fault tree using the BDD technique.

Kernels in Support Vector Machines. Based on lectures of Martin Law, University of Michigan

Digital Signal Processing

Structure and Drive Paul A. Jensen Copyright July 20, 2003

Nodal analysis of finite square resistive grids and the teaching effectiveness of students projects

Section 8.3 Polar Form of Complex Numbers

Turing Machines (intro)

Department of Electrical & Electronic Engineeing Imperial College London. E4.20 Digital IC Design. Median Filter Project Specification

Transfer Functions. Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: ( ) system

Unit 5: Quadratic Equations & Functions

Amiri s Supply Chain Model. System Engineering b Department of Mathematics and Statistics c Odette School of Business

Application of Nonbinary LDPC Codes for Communication over Fading Channels Using Higher Order Modulations

Basic Regular Expressions. Introduction. Introduction to Computability. Theory. Motivation. Lecture4: Regular Expressions

A Novel Feistel Cipher Involving a Bunch of Keys supplemented with Modular Arithmetic Addition

Key component in Operational Amplifiers

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

NON-CENTRAL 7-POINT FORMULA IN THE METHOD OF LINES FOR PARABOLIC AND BURGERS' EQUATIONS

FPGA Implementation of Pipelined CORDIC Sine Cosine Digital Wave Generator

Department of Computer Science Artificial Intelligence Research Laboratory. Iowa State University MACHINE LEARNING

Numerical Heat and Mass Transfer

The Order Relation and Trace Inequalities for. Hermitian Operators

Chapter 8 SCALAR QUANTIZATION

Interactive Bi-Level Multi-Objective Integer. Non-linear Programming Problem

CIS526: Machine Learning Lecture 3 (Sept 16, 2003) Linear Regression. Preparation help: Xiaoying Huang. x 1 θ 1 output... θ M x M

IRO0140 Advanced space time-frequency signal processing

APPROXIMATE PRICES OF BASKET AND ASIAN OPTIONS DUPONT OLIVIER. Premia 14

Generalized Linear Methods

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0

Week 5: Neural Networks

Lecture 3. Ax x i a i. i i

SOLVING NON-LINEAR SYSTEMS BY NEWTON s METHOD USING SPREADSHEET EXCEL Tay Kim Gaik Universiti Tun Hussein Onn Malaysia

A Simple Inventory System

Lecture 5 Decoding Binary BCH Codes

Introduction to information theory and data compression

COMPARING NOISE REMOVAL IN THE WAVELET AND FOURIER DOMAINS

Advanced Introduction to Machine Learning

Lecture 4: Universal Hash Functions/Streaming Cont d

The Minimum Universal Cost Flow in an Infeasible Flow Network

Generative classification models

LECTURE 9 CANONICAL CORRELATION ANALYSIS

A new Approach for Solving Linear Ordinary Differential Equations

6.01: Introduction to EECS 1 Week 6 October 15, 2009

Differential Polynomials

Fuzzy Boundaries of Sample Selection Model

ELECTRONICS. EE 42/100 Lecture 4: Resistive Networks and Nodal Analysis. Rev B 1/25/2012 (9:49PM) Prof. Ali M. Niknejad

Dimension Reduction and Visualization of the Histogram Data

find (x): given element x, return the canonical element of the set containing x;

Time and Space Complexity Reduction of a Cryptanalysis Algorithm

Appendix B: Resampling Algorithms

Modeling and Simulation of a Hexapod Machine Tool for the Dynamic Stability Analysis of Milling Processes. C. Henninger, P.

Finite Difference Method

Transcription:

Decson Dagrams Dervatves Logc Crcuts Desgn Semnars WS2010/2011, Lecture 3 Ing. Petr Fšer, Ph.D. Department of Dgtal Desgn Faculty of Informaton Technology Czech Techncal Unversty n Prague Evropský socální fond Praha & EU: Investujeme do vaší budoucnost

Multple-Output Functons Mult-rooted BDDs (Shared BDDs, SDDs) MTBDDs (Mult-Termnal BDDs) BDDs for characterstc functons PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 2

Mult-Rooted (Shared) BDDs Each root represents a dstnct functon Subgraphs of dfferent functons are shared Nodes n Unque table are shared BDD reducton rules retaned Canoncty retaned Evaluaton tme: O(n.m) PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 3

Mult-Termnal BDDs (MTBDDs) Termnals represent output vectors O(2 m ) termnals a, b a+b a.b 00 0 0 01 1 0 10 1 0 11 1 1 PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 4

Mult-Termnal BDDs (MTBDDs) Reducton rules and canoncty retaned O(2 m ) termnals Evaluaton tme: O(n+m) PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 5

BDDs for Characterstc Functon Let f( 1,, n ) (y 1,, y m ) f ( 1,, n, y 1,, y m ) = 1 f( 1,, n ) = (y 1,, y m ) a b f 1 = a+b f 2 = a.b 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 a b f 1 f 2 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 1 0 1 1 1 0 a b f 1 f 2 1 0 0 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 6

BDDs for Characterstc Functon a b f 1 f 2 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 1 0 1 1 1 0 a b f 1 f 2 1 0 0 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 = a.b.f 1. f 2 + a.b.f 1.f 2 + a.b.f 1.f 2 + a.b.f 1.f 2 PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 7

BDDs for Characterstc Functon BDD reducton rules retaned Canoncty retaned Evaluaton tme: O(n+m) PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 8

BDDs for Multple-Output Functons References P. Ashar, S. Malk, "Fast functonal smulaton usng branchng programs, In Proceedngs of the 1995 IEEE/ACM nternatonal conference on Computer-aded desgn, San Jose, Calforna, Unted States, 1995, pp. 408-412. R. Drechsler, C. Scholl, B. Becker, "Functonal smulaton usng bnary decson dagrams, In Proceedngs of the 1997 IEEE/ACM nternatonal conference on Computer-aded desgn, San Jose, Calforna, Unted States, 1997, pp. 8-12. M. Fujta, P. C. McGeer, J. C. Yang, "Mult-Termnal Bnary Decson Dagrams: An Effcent DataStructure for Matr Representaton", Formal Methods n System Desgn Journal, vol. 10, no. 2-3, pp. 149-169, aprl, 1997. T. Sasao, Y. Iguch, M. Matsuura, "Comparson of decson dagrams for multple-output logc functons, In Internatonal Workshop on Logc and Synthess, Unversty of Mchgan, 2002, pp. 4-7. PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 9

Incompletely Specfed Functons Two BDDs Modfed Bnary Dagrams (MBDs) BDD for characterstc functon PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 10

Incompletely Specfed Functons Two BDDs On-set & DC-set (or on- and off-set) are mplemented by separate BDDs or by mult-rooted BDD Propertes: Two separate functons, no relaton between onand dc-set on-set and dc-set (or on-set and off-set) may ntersect PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 11

Modfed Bnary Dagrams (MBDs) Lke MTBDDs Three termnals Eample: f 1 = a.b.c + a.b.c f dc = a.b.c PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 12

Modfed Bnary Dagrams (MBDs) BDD reducton rules & canoncty retaned Operatons slghtly modfed, applcaton prncples are the same AND 0 1 X 0 0 0 0 1 0 1 X X 0 X X OR 0 1 X 0 0 1 X 1 1 1 1 X X 1 X NOT 0 1 1 0 X X PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 13

Modfed Bnary Dagrams (MBDs) Propertes Two separate functons, no relaton between on- and dc-set But on-, off- and dc-set cannot ntersect PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 14

PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 15 BDD for Characterstc Functon One more defnton of the characterstc functon of a completely specfed multple-output functon: m n m n n y f y y m f 1 1 1 1 1 ),..., ( ),...,,,..., ( 1,... {0,1}, ),..., ( m n OFF n ON m n n n OFF n n ON f y f y y y f f f f 1 1 1 1 1 1 1 1 1 ),..., ( ),..., ( ),...,,,..., ( ),..., ( ),..., ( ),,..., ( ),..., ( Let

BDD for Characterstc Functon For ncompletely specfed multple-output functon: ( 1,..., n, y1,..., ym) m 1 y f ON y f OFF f DC PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 16

BDD for Characterstc Functon Propertes Real nterpretaton of dc-set s recognzed DC may be ether 0, or 1 PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 17

Incompletely Specfed Functons References R. P. Jacob, "A Study of the Applcaton of Bnary Decson Dagrams n Multlevel Logc Synthess", Ph.D. Thess, 1993. T. Sasao, M. Matsuura, "BDD representaton for ncompletely specfed multple-output logc functons and ts applcatons to functonal decomposton, In 42nd Conference on Desgn Automaton, San Dego Calforna USA, 2005, pp. 373-378. PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 18

Algebrac Decson Dagrams (ADDs) More termnals, not only {0, 1} ADD represents a set of functons f : {0, 1} n S MTBDDs, actually Arthmetc operatons support (addton, multplcaton, dvson, mnmum, mamum) Complemented edges of lmted use Reducton rules and canoncty retaned Applcatons: Representaton of mult-output functons Matr multplcaton Shortest path search FSM traversal PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 19

ADDs References F. Somenz et al. "Algebrac decson dagrams and ther applcatons, In Proceedngs of the 1993 IEEE/ACM nternatonal conference on Computer-aded desgn, Santa Clara, Calforna, Unted States, 1993, pp. 188-191. M. Fujta, P. C. McGeer, J. C. Yang, "Mult-Termnal Bnary Decson Dagrams: An Effcent DataStructure for Matr Representaton", Formal Methods n System Desgn Journal, vol. 10, no. 2-3, pp. 149-169, aprl, 1997. PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 20

Zero-Suppressed Decson Dagrams (ZDDs) To represent combnaton sets (or sets of subsets), not functons (!) Sets of combnatons of n objects Each combnaton descrbed by a vector X = ( 1, 2,, n ), X {0, 1} Good for representng sparse combnatons = combnatons havng only few 1 s Bascally BDDs, wth modfed reducton rules all combnatons stored n ZDD are recovered by traversng all paths from the root to the 1-termnal PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 21

Zero-Suppressed Decson Dagrams (ZDDs) BDD Reducton rules: 1. Elmnate duplcate termnals 2 termnals only 2. Elmnate duplcate non-termnals share equvalent subgraphs 3. Elmnate redundant nodes elmnate nodes where both edges pont to the same node [ lo(u) = h(u) ] PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 22

Zero-Suppressed Decson Dagrams (ZDDs) ZDD Reducton rules: 1. Elmnate duplcate termnals 2 termnals only 2. Elmnate duplcate non-termnals share equvalent subgraphs 3. Elmnate nodes whose 1-edge ponts to the 0-termnal node elmnate non-branchng nodes representng non-present objects PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 23

Zero-Suppressed Decson Dagrams (ZDDs) Eample: X = (a, b, c) S = { (100), (010), (001) } = { (a), (b), (c) } Elmnate nodes whose 1-edge ponts to the 0-termnal node PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 24

Zero-Suppressed Decson Dagrams Eamples of operatons: Subset_1(P, var) returns the subset of P where var = 1 Subset_0(P, var) returns the subset of P where var = 0 Unon(P, Q) returns P Q Intsecton(P, Q) returns P Q Dfference(P, Q) returns P- Q Product(P, Q) returns all possble concatenatons Dvson(P, Q) returns quotent and remander, P = Q*(P/Q) + (P%Q) PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 25

Zero-Suppressed Decson Dagrams Algorthms: Performed recursvely Lke APPLY n BDDs Complety of bnary operatons: O(P.Q) PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 26

ZDD Propertes Canoncal under gven varable orderng and support set Good for sparse combnatons No problems wth many varables (n contrast wth BDDs) Worst-case ZDD sze s O( X. S ) PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 27

Applcatons of ZDDs Cube (SOP) set representaton a a Each lteral represented by one ZDD varable 2n ZDD varables for n-nput functon a' b b' b Eample { ab, abc, c } = { (101000), (101001), (000010) } where X = ( a, a, b, b, c, c ) c c' c c' 0 1 PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 28

Applcatons of ZDDs Network paths representaton (e.g. for tmng analyss) Representaton of fault sets Combnatoral problems Unate coverng problem SAT solvng Graph problems Data mnng PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 29

ZDDs References S. Mnato, "Zero-suppressed BDDs for set manpulaton n combnatoral problems, In 30th Internatonal Conference on Desgn Automaton, USA, 1993. A. Mshchenko, An ntroducton to zero-suppressed bnary decson dagrams, In Proceedngs of the 12th Symposum on the Integraton of Symbolc Computaton and Mechanzed Reasonng, 2001. S. Mnato, "Zero-suppressed BDDs and ther applcatons", Internatonal Journal on Software Tools for Technology Transfer (STTT), vol. 3, no. 2, pp. 156-170, 2001 S. Mnato, Recent Topcs on Decson Dagrams and Dscrete Structure Manpulaton, Proc. 9th Int. Workshop on Boolean Problems (IWSBP'10), Freberg, Germany, 16.-17.9.2010, pp. 103-112 PI-SCN-3, ČVUT FIT, Petr Fšer, 2010 30