Boolean algebra.

Similar documents
Boolean Algebra. Boolean Algebra

Reasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.

IST 4 Information and Logic

Boolean Algebra. Boolean Algebras

Fachgebiet Rechnersysteme1. 1. Boolean Algebra. 1. Boolean Algebra. Verification Technology. Content. 1.1 Boolean algebra basics (recap)

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

M A T H F A L L CORRECTION. Algebra I 2 1 / 0 9 / U N I V E R S I T Y O F T O R O N T O

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Fall Notes - Unit 1

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378: Computer Hardware Design Winter Notes - Unit 1

CS 330 Formal Methods and Models

Fast Boolean Algebra

Digital Control of Electric Drives

Introduction to Electrical & Electronic Engineering ENGG1203

IST 4 Information and Logic

Overview of Today s Lecture:

expression simply by forming an OR of the ANDs of all input variables for which the output is

IST 4 Information and Logic

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

KNOWLEDGE-BASED AGENTS INFERENCE

Elements of Computing Systems, Nisan & Schocken, MIT Press. Boolean Logic

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

Coalgebra, Lecture 15: Equations for Deterministic Automata

Introduction to Group Theory

Lecture 3. Introduction digital logic. Notes. Notes. Notes. Representations. February Bern University of Applied Sciences.

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

Control with binary code. William Sandqvist

1 2 : 4 5. Why Digital Systems? Lesson 1: Introduction to Digital Logic Design. Numbering systems. Sample Problems 1 5 min. Lesson 1-b: Logic Gates

Chapter 1: Boolean Logic

INF1383 -Bancos de Dados

Lecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences

Lecture 2 : Propositions DRAFT

Digital Circuit Engineering

Propositional models. Historical models of computation. Application: binary addition. Boolean functions. Implementation using switches.

Unit 4. Combinational Circuits

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

Software Engineering using Formal Methods

Name Ima Sample ASU ID

8. Complex Numbers. We can combine the real numbers with this new imaginary number to form the complex numbers.

p-adic Egyptian Fractions

Parse trees, ambiguity, and Chomsky normal form

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes

More on automata. Michael George. March 24 April 7, 2014

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

UNIT 5 QUADRATIC FUNCTIONS Lesson 3: Creating Quadratic Equations in Two or More Variables Instruction

Lecture 9: LTL and Büchi Automata

set is not closed under matrix [ multiplication, ] and does not form a group.

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

Review of Gaussian Quadrature method

dy ky, dt where proportionality constant k may be positive or negative

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

Bases for Vector Spaces

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

Linear Inequalities. Work Sheet 1

CHAPTER 1 PROGRAM OF MATRICES

1B40 Practical Skills

Nondeterminism and Nodeterministic Automata

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac

38 Riemann sums and existence of the definite integral.

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)

Revision Sheet. (a) Give a regular expression for each of the following languages:

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Complexity in Modal Team Logic

September 13 Homework Solutions

STRUCTURE OF CONCURRENCY Ryszard Janicki. Department of Computing and Software McMaster University Hamilton, ON, L8S 4K1 Canada

ENGR 3861 Digital Logic Boolean Algebra. Fall 2007

Genetic Programming. Outline. Evolutionary Strategies. Evolutionary strategies Genetic programming Summary

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

Some Theory of Computation Exercises Week 1

Lecture 08: Feb. 08, 2019

Homework Solution - Set 5 Due: Friday 10/03/08

The practical version

Network Analysis and Synthesis. Chapter 5 Two port networks

Handout: Natural deduction for first order logic

Section 6.1 INTRO to LAPLACE TRANSFORMS

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3

Chapter 14. Matrix Representations of Linear Transformations

Student Activity 3: Single Factor ANOVA

Pre-Session Review. Part 1: Basic Algebra; Linear Functions and Graphs

CS 330 Formal Methods and Models

Designing Information Devices and Systems I Discussion 8B

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

RELATIONAL MODEL.

Convert the NFA into DFA

Note 12. Introduction to Digital Control Systems

CS 330 Formal Methods and Models

Lecture 09: Myhill-Nerode Theorem

Good Review book ( ) ( ) ( )

DATABASE DESIGN I - 1DL300

Homework 3 Solutions

Introduction To Matrices MCV 4UI Assignment #1

EECS 141 Due 04/19/02, 5pm, in 558 Cory

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Lecture Solution of a System of Linear Equation

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

Transcription:

http://en.wikipedi.org/wiki/elementry_boolen_lger Boolen lger www.tudorgir.com Computer science is not out computers, it is out computtion nd informtion. computtion informtion computer informtion Turing mchines model computtions with unounded stte. They llow us to reson out wht prolems re computle or not. The Hlting prolem is the cnonicl exmple of n uncomputle prolem: It is impossile to write progrm tht cn nlyze n ritrry progrm nd decide in finite time whether tht progrm will hlt. Figure from http://en.wikipedi.org/wiki/turing_mchine Aln Turing, 937

Boolen lger ws developed in 854 y George Boole in his ook An Investigtion of the Lws of Thought. Clude Shnnon founded oth digitl computer nd digitl circuit design theory in 937 through his Mster thesis (t MIT) demonstrting tht electricl ppliction of Boolen lger could construct nd resolve ny logicl, numericl reltionship. http://en.wikipedi.org/wiki/george_boole http://en.wikipedi.org/wiki/clude_shnnon George Boole 85 864 Clude Shnnon 96 2 When the switch is open, the output y is without voltge. This corresponds to vlue, or flse. When the switch is closed, the output y is under voltge. This corresponds to vlue, or true. = y = = y = nd re the domin vlues of oolen lger. = = y =

= = y = = = y = = = y =

= = x y = x = = x y = x x x x = x = x y = x x x x x x x

= = y = = = y = = = y =

= = y = = = x y = x x x = = x y = x x x

= x = x y = x x x x x x x = y = y = = y = y =

Conjunction (AND) Disjunction (OR) Negtion (NOT) = y Bsic oolen opertors: - Conjunction (AND): : = if nd only if = nd = - Disjunction (OR): : = if nd only if = or = - Negtion (NOT): : = if nd only if = These tles re clled the truth vlues for these opertions. As n exercise, construct the truth tle of the oolen function: f= ( c) Vrious nottions nd representtions of sic oolen opertions. http://en.wikipedi.org/wiki/logic_gte * & AND OR -! NOT Neutrl elements = = Zero elements = = Idempotence = = Commuttivity = = Associtivity ( c) = ( ) c ( c) = ( ) c Distriutivity ( c) = ( ) ( c) ( c) = ( ) ( c) Every xiom hs dul one: replce, with, nd you will get the sme set of lws. This is clled the dulity principle of oolen lger. http://en.wikipedi.org/wiki/elementry_boolen_lger Idempotence sys tht n opertion cn e pplied multiple times without chnging the result. http://en.wikipedi.org/wiki/idempotence Negtion = =

DeMorgn s lws ( ) = ( ) ( ) NAND DeMorgn s Theorems for negting oolen function: - Negte oolen vriles; - Chnge to nd to ; ( ) = ( ) ( ) NOR ( ) ( ) ( ) DeMorgn s xioms: ( ) = ( ) ( ) clled NAND ( ) = ( ) ( ) clled NOR http://en.wikipedi.org/wiki/de_morgn%27s_lws De Morgn (86 87) Neutrl elements = = Zero elements = = Commuttivity = = Associtivity ( c) = ( ) c ( c) = ( ) c Exercises. Determine the results of: ( ) (( ) ( )) =? ( ) =? (nmed the sorption xiom) ( ) =? (nmed the sorption xiom) Idempotence = = Distriutivity ( c) = ( ) ( c) ( c) = ( ) ( c) Negtion = = DeMorgn s ( ) = ( ) ( ) ( ) = ( ) ( ) Specil oolen opertors: - Exclusive OR (XOR): y is if exctly one of the vriles nd is. y= = - Impliction: y is if nd only if is or is. y = = Exclusive OR (XOR) = y Impliction = y Euivlence = y - Euivlence: y = = ( ) ( ) Exercise: Represent these opertions using Venn Digrms

4 3 3 Negtion (NOT) = y Exclusive OR (XOR) = y Conjunction (AND) 3 2 Impliction = y Disjunction (OR) Euivlence = y Opertors precedence: Negtion 4 Conjunction 3 Disjunction 3 Impliction 2 Euivlence Exmple: c d e = ( ) ((c ( d)) e) Tutology f = ( ( )) Contrdiction f = ( ) Stisfile f = sometimes - f is tutology if: f = in ll situtions (f is lwys ) Exmple: ( ( )) (Modus Ponens Axiom) - f is contrdiction if: f = in ll situtions (f is lwys ) Exmple: - f is stisfile (vlid, erfüllr) if: f = in some sitution Exmples: ( ) ( c) ( c) is tutology nd thus stisfile. ( ) c is stisfile, ut is not tutology Stisfiility is difficult to prove. How mny sic oolen functions with 2 prmeters re possile? In generl, we hve 2^2^n possile functions for n input prmeters. y = y = y 2 = y3 = y4 = y5 = y6 = y7 = y5 = y 4 = y3 = y 2 = y = y = y9 = y8 =

How to crete hlf dder? = co XOR AND co Wht is oolen lger good for? An dder is n exmple of prcticl usefulness. A hlf dder is logicl circuit tht performs n ddition opertion on two one-it inry numers nd : s = ( = ) (sum it) c = ( ) (crry out it) Exercise: redesign the circuit to stisfy the conditions: - use only sic gtes (nd, or, not) - use the lest mount of gtes / connections http://en.wikipedi.org/wiki/adder_(electronics) How to crete full dder? A full dder lso tkes crry-in it into ccounts from possile previous dditions. Thus, the result depends on 3 its (, nd ci) nd represents the result of ddition in two its: co nd. ci = co Exercise: design the gtes of Full Adder ci Full dder co How to crete full dder? We otin full dder of multiple its y linking multiple dders. ci Full dder coci Full dder coci Full dder co

Tudor Gîr www.tudorgir.com cretivecommons.org/licenses/y/3./