Crash course Verification of Finite Automata Binary Decision Diagrams

Similar documents
Crash course Verification of Finite Automata CTL model-checking

Lecture 6. Notes on Linear Algebra. Perceptron

Overview. Discrete Event Systems Verification of Finite Automata. What can finite automata be used for? What can finite automata be used for?

EEE130 Digital Electronics I Lecture #4

Worksheets for GCSE Mathematics. Quadratics. mr-mathematics.com Maths Resources for Teachers. Algebra

Doc112: Hardware. Department of Computing, Imperial College London. Doc112: Hardware Lecture 1 Slide 1

Lecture No. 1 Introduction to Method of Weighted Residuals. Solve the differential equation L (u) = p(x) in V where L is a differential operator

Chapter 6 Reed-Solomon Codes. 6.1 Finite Field Algebra 6.2 Reed-Solomon Codes 6.3 Syndrome Based Decoding 6.4 Curve-Fitting Based Decoding

Lesson 7: Linear Transformations Applied to Cubes

Support Vector Machines. CSE 4309 Machine Learning Vassilis Athitsos Computer Science and Engineering Department University of Texas at Arlington

Logic Synthesis and Verification

General Strong Polarization

1. The graph of a function f is given above. Answer the question: a. Find the value(s) of x where f is not differentiable. Ans: x = 4, x = 3, x = 2,

Bring a printed copy of this lab to your lab section. We will answer the lettered questions in class.

Information Theory with Applications, Math6397 Lecture Notes from September 30, 2014 taken by Ilknur Telkes

Intro to Rings, Fields, Polynomials: Hardware Modeling by Modulo Arithmetic

Lab 1 starts this week: go to your session

Large Scale Data Analysis Using Deep Learning

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Unit 2 Boolean Algebra

Variations. ECE 6540, Lecture 02 Multivariate Random Variables & Linear Algebra

Graph structure in polynomial systems: chordal networks

Haar Basis Wavelets and Morlet Wavelets

Lecture 1: September 25, A quick reminder about random variables and convexity

CS Lecture 8 & 9. Lagrange Multipliers & Varitional Bounds

PHY103A: Lecture # 4

General Strong Polarization

Complexity, P and NP

Mathematical Structures Combinations and Permutations

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

PHY103A: Lecture # 1

Non-context-Free Languages. CS215, Lecture 5 c

Exam Programme VWO Mathematics A

Homework 3/ Solutions

Binary decision diagrams for security protocols

COS 140: Foundations of Computer Science

Administrivia. COMP9020 Lecture 7 Session 2, 2017 Induction and Recursion. Lecture 6 recap. Lecture 6 recap

Systems of Linear Equations

Graph structure in polynomial systems: chordal networks

Classwork. Example 1 S.35

(2) Orbital angular momentum

Lesson 24: True and False Number Sentences

COMP Logic for Computer Scientists. Lecture 16

MATH 1080: Calculus of One Variable II Fall 2018 Textbook: Single Variable Calculus: Early Transcendentals, 7e, by James Stewart.

QuIDD-Optimised Quantum Algorithms

CS Lecture 19: Logic To Truth through Proof. Prof. Clarkson Fall Today s music: Theme from Sherlock

Classes of Boolean Functions

Catalan Numbers. Richard P. Stanley. June 9, 2017

Number Representations

Lesson 23: The Defining Equation of a Line

International Journal of Mathematical Archive-5(3), 2014, Available online through ISSN

Binary Decision Diagrams. Graphs. Boolean Functions

2.4 Error Analysis for Iterative Methods

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

CNS 188a Computation Theory and Neural Systems. Monday and Wednesday 1:30-3:00 Moore 080

PHY103A: Lecture # 9

Lecture 2: From Classical to Quantum Model of Computation

2mm Pitch 2 Piece Battery Connector for Litium-ion / Litium-polymer GF SERIES E-9

Exercise 2.4 Molecular Orbital Energy Level Diagrams: Homonuclear Diatomics

Lesson 24: Using the Quadratic Formula,

Mark Redekopp, All rights reserved. Lecture 4 Slides. Boolean Algebra Logic Functions Canonical Sums/Products

Basic counting techniques. Periklis A. Papakonstantinou Rutgers Business School

1 Reals are Uncountable

An Introduction to Symbolic Trajectory Evaluation. Koen Lindström Claessen Chalmers University / Jasper AB Gothenburg, Sweden

Module 7 (Lecture 27) RETAINING WALLS

Worksheets for GCSE Mathematics. Algebraic Expressions. Mr Black 's Maths Resources for Teachers GCSE 1-9. Algebra

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4

Math 171 Spring 2017 Final Exam. Problem Worth

Numbers and Arithmetic

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings.

Ψ g = N g (1s a + 1s b ) Themes. Take Home Message. Energy Decomposition. Multiple model wave fns possible. Begin describing brain-friendly MO

Lesson 2: Recursive Formulas for Sequences

Components and change of basis

3.2 A2 - Just Like Derivatives but Backwards

Revision : Thermodynamics

Motivation for introducing probabilities

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2017

Terms of Use. Copyright Embark on the Journey

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

2. Associative Law: A binary operator * on a set S is said to be associated whenever (A*B)*C = A*(B*C) for all A,B,C S.

Sodium void coefficient map by Serpent

Model Checking. Boris Feigin March 9, University College London

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

BDD Based Upon Shannon Expansion

Prof. Dr.-Ing. Armin Dekorsy Department of Communications Engineering. Stochastic Processes and Linear Algebra Recap Slides

Chem 263 Winter 2018 Problem Set #2 Due: February 16

MODULE- 07 : FLUIDICS AND FLUID LOGIC

ECE 5775 (Fall 17) High-Level Digital Design Automation. Control Flow Graph

Math, Stats, and Mathstats Review ECONOMETRICS (ECON 360) BEN VAN KAMMEN, PHD

Math 3 Unit 2: Solving Equations and Inequalities

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S)

" = Y(#,$) % R(r) = 1 4& % " = Y(#,$) % R(r) = Recitation Problems: Week 4. a. 5 B, b. 6. , Ne Mg + 15 P 2+ c. 23 V,

ECE 6540, Lecture 06 Sufficient Statistics & Complete Statistics Variations

From Greek philosophers to circuits: An introduction to boolean logic. COS 116, Spring 2011 Sanjeev Arora

Geometric Steiner Trees

Homework 1/Solutions. Graded Exercises

Translator Design Lecture 16 Constructing SLR Parsing Tables

Lesson 10: Solving Inequalities

Lecture 4: Best, Worst, and Average Case Complexity. Wednesday, 30 Sept 2009

Sample solutions to Homework 4, Information-Theoretic Modeling (Fall 2014)

Transcription:

Crash course Verification of Finite Automata Binary Decision Diagrams Exercise session 10 Xiaoxi He 1

Equivalence of representations E Sets A B A B Set algebra,, ψψ EE = 1 ψψ AA = ff ψψ BB = gg ψψ AA BB = ff gg Boolean functions/ Characteristic functions Boole algebra +,, 2

Equivalence of representations E Sets A B A B Set algebra,, ψψ EE = 1 ψψ AA = ff ψψ BB = gg ψψ AA BB = ff gg Boolean functions/ Characteristic functions Boole algebra +,, Binary encoding: σσ: XX Ψ Map a state to a binary expression Bijective mapping! 3

Equivalence of representations E Sets A B A B Set algebra,, Binary encoding: σσ: XX Ψ Map a state to a binary expression Bijective mapping! 4 ψψ EE = 1 ψψ AA = ff ψψ BB = gg ψψ AA BB = ff gg Boolean functions/ Characteristic functions Boole algebra +,, States Boolean functions

Equivalence of representations E Sets xx A A ss AA B A B σσ( ) Example: σσ ss = xx 1 xx 0 = (1,0) and ψψ AA = xx 1 + xx 0 ss ψψ AA? ψψ EE = 1 ψψ AA = ff ψψ BB = gg ψψ AA BB = ff gg Boolean functions/ Characteristic functions ψψ AA ψψ AA σσ ss = 1 σσ ss ψψ AA or just ss ψψ AA Reads ss satisfies ψψ AA 5

Binary Decision Diagrams Based on the Boole-Shannon decomposition: Boolean function of nn and (nn 1) variables For a given order of variable, the decomposition is unique! Hence the uniqueness of R(reduced)O(rdered)BDD. Reminder: In practice, simplicity of BDD depends strongly on the order. Good vs. Bad ordering 6

Binary Decision Diagrams: an example ff: xx 1 + xx 1 xx 2 + xx 2 xx 3 ff xx 1 0 1 0 1 7

Binary Decision Diagrams: an example ff: xx 1 + xx 1 xx 2 + xx 2 xx 3 Fall xx 1 = 0 ff xx1 =0: xx 2 + xx 2 xx 3 ff xx 1 ff xx1 =0 xx 2 0 1 0 1 8

Binary Decision Diagrams: an example ff: xx 1 + xx 1 xx 2 + xx 2 xx 3 Fall xx 1 = 0 ff xx 1 ff xx1 =0: xx 2 + xx 2 xx 3 Fall xx 2 = 0 ff xx1 =0, xx 2 =0: xx 3 ff xx1 =0 xx 2 ff xx1 =0, xx 2 =0 xx 3 0 1 0 1 9

Binary Decision Diagrams: an example ff: xx 1 + xx 1 xx 2 + xx 2 xx 3 Fall xx 1 = 0 ff xx 1 ff xx1 =0: xx 2 + xx 2 xx 3 Fall xx 2 = 0 ff xx1 =0, xx 2 =0: xx 3 ff xx1 =0 xx 2 ff xx1 =0, xx 2 =0 xx 3 0 1 0 1 10

Binary Decision Diagrams: an example ff: xx 1 + xx 1 xx 2 + xx 2 xx 3 Fall xx 1 = 0 ff xx 1 ff xx1 =0: xx 2 + xx 2 xx 3 Fall xx 2 = 0 ff xx1 =0, xx 2 =0: xx 3 Fall xx 2 = 1 ff xx1 =0, xx 2 =1: 1 ff xx1 =0 ff xx1 =0, xx 2 =0 xx 2 xx 3 0 1 0 1 11

Binary Decision Diagrams: an example ff: xx 1 + xx 1 xx 2 + xx 2 xx 3 Fall xx 1 = 0 ff xx 1 ff xx1 =0: xx 2 + xx 2 xx 3 Fall xx 2 = 0 ff xx1 =0 xx 2 ff xx1 =0, xx 2 =0: xx 3 Fall xx 2 = 1 ff xx1 =0, xx 2 =1: 1 ff xx1 =0, xx 2 =0 xx 3 Fall xx 1 = 1 ff xx1 =1: 1 0 1 0 1 12

Crash course Verification of Finite Automata Binary Decision Diagrams Slides online on my webpage: http://people.ee.ethz.ch/~jacobr/ Your turn! 13

Ex1: Sets Representation Each state is either a nominal or an error state or both". X N E 14

Ex1: Sets Representation If a state is in the overflow set, it is not a nominal state". O X N E But note it is not necessarily true!! Although you would like it to be 15

Ex1: Sets Representation Describe Q1, the set of error states which are not an overflow, in term of sets and characteristic functions. O X N E Q1 16

Ex1: Sets Representation Describe Q2, satisfying "O E", i.e., the set of state for which this property holds, in term of sets and characteristic functions. O Q2 X Is that correct? N E 17

Ex1: Sets Representation Describe Q2, satisfying "O E", i.e., the set of state for which this property holds, in term of sets and characteristic functions. N O E Q2 X Is that correct? No! What if a state is not in O? Property is always true! 18

Ex1: Sets Representation Describe Q2, satisfying "O E", i.e., the set of state for which this property holds, in term of sets and characteristic functions. N O E Q2 X Is that correct? No! What if a state is not in O? Property is always true! 19

Ex2.1 Verication using BDDs 20

Ex2.1 Verication using BDDs 21

Ex2.1 Verication using BDDs 22

Ex2.2 BDDs with respect to different orderings, 23

Ex2.2 BDDs with respect to different orderings, Better ordering: 6 vs. 9 nodes 24

About the lecture exercise feedback 26

Crash course Verification of Finite Automata Binary Decision Diagrams See you next week! 27