IST 4 Information and Logic

Similar documents
IST 4 Information and Logic. Claude Shannon April 30,

CNS 188a Overview. Implementing Boolean functions with relay circuits, circuits of AON (AND, OR, NOT) gates and LT (Linear Threshold) gates

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

GC03 Boolean Algebra

Identity. p ^ T p p _ F p. Idempotency. p _ p p p ^ p p. Associativity. (p _ q) _ r p _ (q _ r) (p ^ q) ^ r p ^ (q ^ r) Absorption

6. Combinational Circuits. Building Blocks. Digital Circuits. Wires. Q. What is a digital system? A. Digital: signals are 0 or 1.

Combinational Circuits

Lecture (04) Boolean Algebra and Logic Gates

Lecture (04) Boolean Algebra and Logic Gates By: Dr. Ahmed ElShafee

1. Mark the correct statement(s)

QUESTION BANK FOR TEST

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Boolean algebra. June 17, Howard Huang 1

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

UNIT 2 BOOLEAN ALGEBRA

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Introduction to Boolean Algebra

Introduction to Boolean Algebra

2.6 BOOLEAN FUNCTIONS

CS February 17

3. According to universal addressing, what is the address of vertex d? 4. According to universal addressing, what is the address of vertex f?

Boolean Algebra & Digital Logic

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

Propositional Calculus. Math Foundations of Computer Science

DSAS Laboratory no 4. Laboratory 4. Logic forms

Combinational Circuits Digital Logic (Materials taken primarily from:

Chapter 2 Boolean algebra and Logic Gates

CSE 20. Lecture 4: Number System and Boolean Function. CSE 20: Lecture2

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Software Engineering 2DA4. Slides 2: Introduction to Logic Circuits

Boolean relationships on Venn Diagrams

Propositional Calculus. Math Foundations of Computer Science

Solving Boolean Equations with BDDs and Clause Forms. Gert Smolka

Boolean Algebra. P1. The OR operation is closed for all x, y B x + y B

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Combinational Logic & Circuits

Logic Synthesis & Optimization Lectures 4, 5 Boolean Algebra - Basics

CSE 20 DISCRETE MATH. Fall

ENGIN 112 Intro to Electrical and Computer Engineering

1KOd17RMoURxjn2 CSE 20 DISCRETE MATH Fall

Announcements. Chapter 2 - Part 1 1

Propositional Calculus: Boolean Functions and Expressions. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

Computer Organization and Levels of Abstraction

Introduction to Computer Architecture

Computer Organization and Levels of Abstraction

Many ways to build logic out of MOSFETs

Discrete Mathematics Lecture 4. Harper Langston New York University

Circuit analysis summary

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

(Refer Slide Time 6:48)

CS470: Computer Architecture. AMD Quad Core

CS 2630 Computer Organization. Meeting 13: Faster arithmetic and more operations Brandon Myers University of Iowa

CSC Discrete Math I, Spring Sets

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

Computer Science. Unit-4: Introduction to Boolean Algebra

Information Science 1

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

COMP Logic for Computer Scientists. Lecture 17

R10. II B. Tech I Semester, Supplementary Examinations, May

CSE 20 DISCRETE MATH. Winter

EECS 219C: Formal Methods Binary Decision Diagrams (BDDs) Sanjit A. Seshia EECS, UC Berkeley

Boolean Functions (10.1) Representing Boolean Functions (10.2) Logic Gates (10.3)

SAT-CNF Is N P-complete

Computer-Aided Program Design

Logic Design (Part 2) Combinational Logic Circuits (Chapter 3)

Software and Hardware

NP-Completeness. Algorithms

agenda 10 MIN Go over benchmark 30 MIN Unit 2 Day 1 Notes 5 MIN Mastery Work

IT 201 Digital System Design Module II Notes

SWITCHING THEORY AND LOGIC CIRCUITS

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

4 Generating functions in two variables

CSCI2467: Systems Programming Concepts

(Refer Slide Time 3:31)

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

CSE 20 DISCRETE MATH WINTER

Variable, Complement, and Literal are terms used in Boolean Algebra.

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

Injntu.com Injntu.com Injntu.com R16

GEOMETRY (TENTATIVE SCHEDULE) WEEK 1. Abbreviations: LT = Learning Target, Std. = Standard GR = Geometry Review Worksheet (Mixed Math Review)

Combinational Devices and Boolean Algebra

CprE 281: Digital Logic

Summary of Course Coverage

CS314: FORMAL LANGUAGES AND AUTOMATA THEORY L. NADA ALZABEN. Lecture 1: Introduction

Recitation Session 6

Binary Decision Diagrams

Chapter 2: Combinational Systems

Test 1, Spring 2013 ( Solutions): Provided by Jeff Collins and Anil Patel. 1. Axioms for a finite AFFINE plane of order n.

Lecture (05) Boolean Algebra and Logic Gates

1. Boolean algebra. [6] 2. Constructing a circuit. [4] 3. Number representation [4] 4. Adders [4] 5. ALU [2] 6. Software [4]

Today. Types of graphs. Complete Graphs. Trees. Hypercubes.

Digital logic fundamentals. Question Bank. Unit I

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

HOL DEFINING HIGHER ORDER LOGIC LAST TIME ON HOL CONTENT. Slide 3. Slide 1. Slide 4. Slide 2 WHAT IS HIGHER ORDER LOGIC? 2 LAST TIME ON HOL 1

Transcription:

IST 4 Information and Logic

T = today x= hw#x out x= hw#x due mon tue wed thr 28 M oh 4 oh M oh oh 2 M2 8 oh oh 2 fri oh oh = office hours oh 25 oh M2 2 3 oh T midterms oh Mx= MQx out 9 oh 3 4 oh Mx= MQx due 6 oh oh 4 5 23 3 oh 5 oh oh oh

from physics envelops abacus writing numbers to symbols

from physics envelops abacus writing numbers starting today: to symbols symbols to physics-computation

From ideas to physical implementation Today s most important slide Physical implementation of syntax boxes with relay circuits Claude Shannon Algorizms to small syntax boxes m-box Syntax boxes to Boolean algebra Boolean algebra to Physics

Boolean algebra formulae and functions

Simple Boolean formula All the coefficients are Feasible for an arbitrary (finite) Boolean algebra

Boolean Functions Given a Boolean algebra with a set of elements B A Boolean function is a mapping from n {B} à {B} defined by a simple Boolean formula

Boolean Functions 2 Elements Start with a simple Boolean formula Assign all possible elements to the formula Two element Boolean Algebra B= {,} a b ab OR(a,b) + = + = + = + = Mapping of a simple Boolean formula to a syntax box

Boolean Functions 4 Elements + ab OR(a,b)

Boolean Functions 2 Elements Start with a simple Boolean formula Assign all possible elements to the formula Two element Boolean Algebra B= {,} ab XOR(a,b) a b Mapping of a simple Boolean formula to a syntax box

Boolean Functions 4 Elements ab XOR(a,b)

Boolean algebra DNF s

DNF Disjunctive Normal Form Idea: Representing a Boolean function with a formula of a specific form

Representation of Boolean Functions Disjunctive (Additive) Normal Form (DNF): Sum of terms, each term is Normal Normal = contains all the variables or their complements

Representation of Boolean Functions Disjunctive (Additive) Normal Form (DNF): Sum of terms, each term is Normal Normal = contains all the variables or their complements No! Is it a DNF? This term is not normal

DNF E-Theorem Every Boolean function can be Expressed in a DNF

Every Boolean function can be Expressed in a DNF Expressed the following in a DNF T4 A A2 A4 T3 A3 L

DNF E-Theorem: DNF E-Theorem Every Boolean function can be xpressed in a Proof: By the algorithm Apply DeMorgan Theorem (T4) until each negation is applied to a single variable Apply distributive axiom (A4) to get a sum of terms Augment a missing variable a to a term using (A,A2,A4) multiplying by Use (A3, T3) and self absorption (L) to eliminate duplicate terms

Being Normal is Boring... For which - assignments a normal term =? xy AND(x,y) A normal term is for a single - assignment otherwise it is iff both x and y are

Being Normal is Boring... For which - assignments a normal term =? Normal - assignment, corresponds to a normal term A normal term is for a single - assignment otherwise it is

A Boolean function is for the normal - assignments and for the other - assignments DNF Normal - assignments Boolean function syntax table ab XOR(a,b)

A Boolean function is for the normal assignments and for the other - assignments DNF - assignments Normal - assignments Other - assignments

DNF Representation Theorem DNF Representation Theorem: DNF is a representation: two Boolean functions are equal if and only if their DNFs are identical. 5 + 2 + + =?? = 7+ 3 + 82+ 5 + 2 + + 9 + + 9

DNF Representation Theorem DNF Representation Theorem: DNF is a representation: two Boolean functions are equal if and only if their DNFs are identical. Proof: Easy direction: DNFs identical implies functions are equal Other direction: DNF are different implies functions are not equal Idea: consider the value of the functions for the - assignment

Other direction: two different DNFs implies two different functions Proof: Idea: consider the value of the functions for the - assignments If two DNFs are different, there is a term that appears in one and does not appear in the other The - normal assignment that corresponds to this term results in a for one DNF and in a for the other. Q

DNF is a representation: Two Boolean functions are equal if and only if their DNFs are identical. Q: How is the all- function represented? Answer: Q: How is the all- function represented? Answer: everything...

Counting Functions DNF is a representation: Two Boolean functions are equal if and only if their DNFs are identical. Q: How many different Boolean functions of n variables? Answer: The same as the number of different DNFs of n variables Number of different normal terms of n variables? A normal term can appear/not appear in a DNF

Boolean algebra DNF from syntax boxes

Represent a syntax box with formula? DNF is a way to express a syntax box using a formula Any syntax box? We will focus on binary It works only for binary!

DNF is a way to express a syntax box using a formula normal assignment in the syntax table = a normal term in the DNF Idea: construct a DNF by adding the normal terms that correspond to the normal assignments ab XOR(a,b)

DNF is a way to express a syntax box using a formula normal assignment in the syntax table = a normal term in the DNF Idea: construct a DNF by adding the normal terms that correspond to the normal assignments ab f(a,b)

Boolean algebra DNF and magic boxes

Q:Can we reason about magic boxes using Boolean algebra? YES A Boolean algebra is a language for reasoning about syntax boxes A MAGIC BOX: binary s-box that can compute binary s-box?

A magic box with Boolean algebra? Prove that it is magical? a b m

A magic box with Boolean algebra? Prove that it is magical? a b m First idea: DNF of m(a,b)

A magic box with Boolean algebra? Prove that it is magical? Second idea? a b m Compute the operations of the Boolean algebra with m(a,b)

Analyzing the Magic Box using Boolean Algebra a b m Can realize the operations of the algebra hence, can compute any DNF magical for Binary

The Magic Box Can Compute any Boolean Function??? output in DNF?

The Magic Box Can Compute any Boolean Function HW#3

Binary Adder Gottfried Leibniz 646-76 digit digit 2 3 bits to 2 bits carry 2 symbol adder carry Represent the number of s in the input as two bits in base 2 sum

s c d d2 c parity majority d d2 c

majority parity d d2 c c d d2 c s majority parity

In HW#3: Compute parity and majority with magic boxes... d d2 majority c 2 symbol adder c s parity

Shannon 96-2

Shannon 96-2 Connection Between Boolean Calculus and Physical Circuits Shannon 938 Relay on the edge controlled by a - variable ~9 AB (After Boole)

Connection Between Boolean Calculus and Physical Circuits Shannon 938 What is it computing? When is it connected? a b ab AND(a,b) connected a ab OR(a,b) disconnected b 2 relays

Shannon 96-2 Next week: Implementing Boolean functions with relay circuits