IST 4 Information and Logic

Similar documents
IST 4 Information and Logic

IST 4 Information and Logic

Boolean algebra.

Green s function. Green s function. Green s function. Green s function. Green s function. Green s functions. Classical case (recall)

Boolean Algebra. Boolean Algebras

Arithmetic & Algebra. NCTM National Conference, 2017

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute

ELE B7 Power System Engineering. Unbalanced Fault Analysis

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

How do you know you have SLE?

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

8 Laplace s Method and Local Limit Theorems

Intuitionistic Fuzzy Lattices and Intuitionistic Fuzzy Boolean Algebras

Dually quasi-de Morgan Stone semi-heyting algebras II. Regularity

Recitation 3: More Applications of the Derivative

Lesson 1: Quadratic Equations

New Expansion and Infinite Series

Section 6.1 INTRO to LAPLACE TRANSFORMS

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

Integrals along Curves.

Overview of Calculus I

Ordinary differential equations

Linearly Similar Polynomials

The Regulated and Riemann Integrals

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

arxiv:math/ v2 [math.ho] 16 Dec 2003

Natural examples of rings are the ring of integers, a ring of polynomials in one variable, the ring

Good Review book ( ) ( ) ( )

7.2 The Definite Integral

State Minimization for DFAs

Elementary Mathematical Concepts and Operations

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

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility)

The practical version

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

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

Introduction to the Calculus of Variations

Semigroup of generalized inverses of matrices

DATABASE DESIGN I - 1DL300

Coalgebra, Lecture 15: Equations for Deterministic Automata

The Riemann-Lebesgue Lemma

Generalized Fano and non-fano networks

Introduction to Group Theory

Math 1B, lecture 4: Error bounds for numerical methods

Math 4310 Solutions to homework 1 Due 9/1/16

Matrices. Elementary Matrix Theory. Definition of a Matrix. Matrix Elements:

332:221 Principles of Electrical Engineering I Fall Hourly Exam 2 November 6, 2006

Control with binary code. William Sandqvist

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

Numerical Linear Algebra Assignment 008

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

Review of Calculus, cont d

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014

We will see what is meant by standard form very shortly

THE NUMBER CONCEPT IN GREEK MATHEMATICS SPRING 2009

First Midterm Examination

4.4 Areas, Integrals and Antiderivatives

Name of the Student:

Linear Network Codes and Systems of Polynomial Equations

Improper Integrals, and Differential Equations

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

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

THE QUADRATIC RECIPROCITY LAW OF DUKE-HOPKINS. Circa 1870, G. Zolotarev observed that the Legendre symbol ( a p

RELATIONAL MODEL.

1 2-D Second Order Equations: Separation of Variables

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions

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

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

MAA 4212 Improper Integrals

Theoretical foundations of Gaussian quadrature

Minimal DFA. minimal DFA for L starting from any other

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

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

CLASSROOM NOTE Some new mean value theorems of Flett type

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.)

Chapter 8.2: The Integral

Boolean Algebra. Boolean Algebra

CS375: Logic and Theory of Computing

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!!

The final exam will take place on Friday May 11th from 8am 11am in Evans room 60.

STEP FUNCTIONS, DELTA FUNCTIONS, AND THE VARIATION OF PARAMETERS FORMULA. 0 if t < 0, 1 if t > 0.

Quadratic Forms. Quadratic Forms

A Criterion on Existence and Uniqueness of Behavior in Electric Circuit

Continuous Random Variables

DIRECT CURRENT CIRCUITS

The Algebra (al-jabr) of Matrices

Handout: Natural deduction for first order logic

Finite-State Automata: Recap

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

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

Chapter 5 : Continuous Random Variables

Results on Planar Near Rings

1.4 Nonregular Languages

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer

One Variable Advanced Calculus. Kenneth Kuttler

Integrals - Motivation

Deterministic Finite-State Automata

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

CS 275 Automata and Formal Language Theory

Transcription:

IST 4 Informtion nd Logic

T = tody x= hw#x out x= hw#x due mon tue wed thr fri 31 M1 1 7 oh M1 14 oh 1 oh 2M2 21 oh oh 2 oh Mx= MQx out Mx= MQx due 28 oh M2 oh oh = office hours 5 3 12 oh 3 T 4 oh oh 19 oh oh 4 5 26 2 oh 5 midterms oh oh oh oh

Everything is 0-1 (Two Vlued)????

Logic to Physics Clude Shnnon s

Shnnon 1916-2001 Shnnon s Bckground Clude Elwood Shnnon ws born in Petoskey, Michign, on April 30, 1916 In 1932 (16) he entered the University of Michign, where he took course tht introduced him to the work of George Boole He grduted d in 1936 (20) with two bchelor 's degrees, one in electricl engineering nd one in mthemtics Joined MIT in 1936, received the msters in electricl engineering nd doctorte in Mthemtics, t the 1940 (24) commencement

Shnnon s Inspirtion Joined MIT in 1936 Shnnon 1916-2001 Vnnevr Bush Smuel Cldwell 1890 1974 1904-1960 The differentil nlyzer t MIT (1931) ws the first generl eqution solver It could hndle sixth-order differentil equtions

Shnnon 1916-2001 Connection Between Boolen Clculus nd Physicl Circuits Shnnon 1938 Hitchcock 1875-1957 Shnnon s dvisor both MSc nd PhD mthemticin 76 yers go

Hitchcock 1875-1957 Bush 1890-1974 Sutherlnd ws fculty t Cltech from 1974 to 1978 (lso MS degree) Served s the founding chir of the CS Deprtment t Cltech Shnnon 1916-2001 Ivn Sutherlnd 1938-

Shnnon 1916-2001 Connection Between Boolen Clculus nd Physicl Circuits Shnnon 1938 Beginning: g No mention of computers... they did not exist A concept tht is missing in the text?

Logic to Physics The lnguge of lines s

Shnnon meets Boole Physics meets Logic A lnguge for synthesizing lrge physicl mchines for COMPUTING

Boolen Clculus nd Physicl Circuits Single Lines nd Composition The lnguge of lines: A line cn hve only two possible colors: blue or red Two lines cn be composed in two possible wys In prllel: In series:

Boolen Clculus nd Physicl Circuits Endpoints Lines hve endpoints Compositions hve endpoints Two lines cn be composed in two possible wys In prllel:

Boolen Clculus nd Physicl Circuits Endpoints Lines hve endpoints Compositions hve endpoints Two lines cn be composed in two possible wys In series:

Boolen Clculus nd Physicl Circuits Composition In prllel: Compositions of lines cn be composed in two different wys, using their endpoints b b

Boolen Clculus nd Physicl Circuits Composition In prllel: Compositions of lines cn be composed in two different wys, using their endpoints

Boolen Clculus nd Physicl Circuits Composition Compositions of lines cn be composed in two different wys, using their endpoints In series: b b

Boolen Clculus nd Physicl Circuits Composition In series: Compositions of lines cn be composed in two different wys, using their endpoints

Boolen Clculus nd Physicl Circuits Color of Composition Wht is the color of composition? color = blue color = red???

Boolen Clculus nd Physicl Circuits Color of Composition Wht is the color of composition? color = blue color = red The color of composition is red if there is red pth between the endpoints Otherwise, the color is blue

Is the two-color line composition 0-1 Boolen lgebr? Wht do we need to do??

Boolen Algebr Algebric system: set of elements B, two binry opertions + nd B hs t lest two elements (0 nd 1) If the following xioms re true then it is Boolen Algebr: A1. identity A2. complement A3. commuttive A4. distributive

Two-Colored Line Composition nd 0-1 Boolen Algebr Algebric system: set of elements B, two binry opertions + nd B hs t lest two elements (0 nd 1) Elements: 0 1

Two-Colored Line Composition nd 0-1 Boolen Algebr Algebric system: set of elements B, two binry opertions + nd B hs t lest two elements (0 nd 1) Elements: Opertions: Compose in prllel: The color of composition is red if there is red pth between the endpoints 0 1 Otherwise, the color is blue + Compose in series:

Two-Colored Line Composition nd 0-1 Boolen Algebr Algebric system: set of elements B, two binry opertions + nd B hs t lest two elements (0 nd 1) Elements: Opertions: Compose in prllel: + 0 1 blue prllel configurtion? Compose in series: red series configurtion?

Two-Colored Line Composition nd 0-1 Boolen Algebr 0 The color of the composition equls the color of + Compose in prllel The color of the composition i Compose in series equls the color of 1 The color of composition is red if there is red pth between the endpoints Otherwise, the color is blue

Two-Colored Line Composition nd 0-1 Boolen Algebr The color of the composition is red = 1 The color of the composition is blue = 0 + Compose in prllel Compose in series The color of composition is red if there is red pth between the endpoints. Otherwise, the color is blue

Two-Colored Line Composition nd 0-1 Boolen Algebr By the definition of the color of composition + Compose in prllel Compose in series The color of composition is red if there is red pth between the endpoints. Otherwise, the color is blue

Two-Colored Line Composition nd 0-1 Boolen Algebr b Two disjoint pths: The top one is determined by,the bottom one is bc b c c Includes the two pths nd bc Two other pths re b nd c determined d by so re redundnt

Is the two-color line composition 0-1 Boolen lgebr?

circuits = lgebr In Shnnon s words: We re now in position to demonstrte the equivlence of this clculus with certin elementry prts of the clculus of propositions. The lgebr of logic originted by George Boole, is symbolic method of investigting logicl reltionships. The symbols of Boolen lgebr dmit of two logicl interprettions. If interpreted in terms of clsses, the vribles re not limited to the two possible vlues 0 nd 1. E. V. Huntington' gives the following set of postultes for symbolic logic:

Shnnon 1916-2001 Connection Between Boolen Clculus nd Physicl Circuits Shnnon 1938 Rely on the edge controlled by 0-1 vrible 0 1 0 1

Shnnon 1916-2001 Connection Between Boolen Clculus nd Physicl Circuits Shnnon 1938 0 1 The vlue of circuit is 1 if there is connected pth between the endpoints Otherwise, it is 0 0 1 The color of composition is red if there is red pth between the endpoints Otherwise, the color is blue

Rely Circuits nlysis nd synthesis s

nlysis of circuits..ny circuit is represented by set of equtions, The terms of the equtions corresponding to the vrious relys nd switches in the circuit. A A clculus is developed for mnipulting these equtions by simple mthemticl processes most of which re similr to ordinry lgebric lgorisms. This clculus is shown to be exctly nlogous to the clculus of propositions used in the symbolic study of logic.

synthesis of circuits For the synthesis problem the desired chrcteristics re first written s system of equtions, nd the equtions re then mnipulted into the form representing the simplest circuit. The circuit my then be immeditely drwn from the equtions. desired chrcteristic system of equtions simplified set of equtions simple circuit

synthesis of circuits For the synthesis problem the desired chrcteristics re first written s system of equtions, nd the equtions re then mnipulted into the form representing the simplest circuit. The circuit my then be immeditely drwn from the equtions. desired chrcteristic Logic design is born! system of equtions Complexity? simplified set of equtions simple circuit

The First Book on Switching Circuits Keister, Ritchie nd Wshburn, 1951 1951 Willim Keister 1907-1997

SpinOut Keister Willim Keister Keister 1907-1997 Willim Keister ws pioneer in switching theory nd design t Bell Lbs When he retired in 1972, he ws director of Bell Lbs' Computing Technology Center t Holmdel, New Jersey. Keister begn working in his spre time to prove tht puzzles could be solved using Boolen lgebr U S Ptent 3637215 (1972): SpinOut U.S. Ptent 3637215 (1972): SpinOut U.S. Ptent 3637216 (1972): The Hexdeciml Puzzle

The First Book on Switching Circuits Keister, Ritchie nd Wshburn, 1951 C nd Unix Dennis Ritchie 1941-2011 1951 Son of

The First Book on Switching Circuits Keister, Ritchie nd Wshburn, 1951 Being recognized by the president with co-inventor Ken Thompson C nd Unix Dennis Ritchie 1941-2011 1951 Son of

The First Book on Switching Circuits Keister, Ritchie nd Wshburn, 1951

Rely Circuits nlysis s

A rely circuit it corresponds to formul rely circuits Boolen functions Boolen sum of ll the pths between endpoints

Anlysis of Rely Circuits Exmple 1: - series-prllel - independent pths between endpoints d b c e b c d e

Exmple 1: - series-prllel - independent pths between endpoints b d c e b c d e

Exmple 1: - series-prllel - independent pths between endpoints b d c e b c d e

Exmple 1: - series-prllel - independent pths between endpoints b d c e b c d e

Exmple 1: - series-prllel - independent pths between endpoints b d c e b c d e

Anlysis of Rely Circuits Exmple 2: - non series-prllel - dependent pths between endpoints b c d e

Anlysis of Rely Circuits b c d e

Anlysis of Rely Circuits b c d e

Anlysis of Rely Circuits b c d e

Anlysis of Rely Circuits b c d e

Anlysis of Rely Circuits Exmple 3: multiple terminls (lso in HW#4) How mny functions? b c d e

Anlysis of Rely Circuits Exmple 3: multiple terminls (lso in HW#4) b c d e

Anlysis of Rely Circuits Exmple 3: multiple terminls (lso in HW#4) b c d e

Anlysis of Rely Circuits Exmple 3: multiple terminls (lso in HW#4) b c d e

Anlysis of Rely Circuits Exmple 3: multiple terminls (lso in HW#4) b c d e

Anlysis of Rely Circuits Exmple 3: multiple terminls (lso in HW#4) b c d e

Anlysis of Rely Circuits Exmple 3: multiple terminls (lso in HW#4) b c d e

Anlysis of Rely Circuits Exmple 3: multiple terminls (lso in HW#4) b c d e

Anlysis of Rely Circuits Exmple 4: - series-prllel - MANY dependent pths between endpoints Q: how mny FORWARD pths?

Anlysis of Rely Circuits Exmple 4: - series-prllel - MANY dependent pths between endpoints Q: how mny FORWARD pths? 3X3X3X3 =81

Anlysis of Rely Circuits Exmple 4: - series-prllel - MANY dependent pths between endpoints Red = vrible Blue = complement of b b b d c c d e

Anlysis of Rely Circuits Exmple 4: - series-prllel - MANY dependent pths between endpoints Red = vrible Blue = complement of b b b d c c d e Q: Is (=0, b=1, c=1, d=1, e=1) stisfying ssignment? NO

Anlysis of Rely Circuits Exmple 4: - series-prllel - MANY dependent pths between endpoints Red = vrible Blue = complement of b b b d c c d e Q: Is (=1, b=1, c=1, d=1, e=1) stisfying ssignment? YES

Anlysis of Rely Circuits Exmple 5: - series-prllel - MANY dependent pths between endpoints Red = vrible b Blue = complement of b b c b c Q: Is there stisfying ssignment?? NO

Anlysis of Rely Circuits Exmple 5: - series-prllel - MANY dependent pths between endpoints Red = vrible b Blue = complement of b b c b c Q: Is there stisfying ssignment? b must be 1

Anlysis of Rely Circuits Exmple 5: - series-prllel - MANY dependent pths between endpoints Red = vrible b Blue = complement of b b c b c Q: Is there stisfying ssignment? b must be 0 Contrdiction!

Questions on stisfying (SAT) ssignments? Efficient lgorizms? Is given ssignment stisfying? Is there stisfying ssignment? YES NO

Anlysis of Rely Circuits it lgorithms nd complexity P vs NP s

Complexity clss NP There is n efficient lgorizm for verifying given SAT solution b b b d c c d e

Complexity clss P There is n efficient i lgorizm for finding SAT ssignment b b b c b c

NP: There is n efficient lgorizm for verifying given SAT solution P: There is n efficient lgorizm for finding SAT ssignment Q: How re NP nd P relted? NP P NO P NP YES

Finding stisfying ssignment is computtionlly difficult problem computtionlly difficult is formlly clled NP-Complete

NP-complete problem for width 3 However, there is n efficient lgorizm for width 2 b b b d c c d e b b b c b c

NP-Complete The lnguge of hrd problems An NP-complete problem is Mgic box for ny problem in NP Cn solve it cn solve ll!!

Finding stisfying ssignment is computtionlly difficult problem I cn't find n efficient lgorizm, I guess I'm just too dumb... Source: Computers nd Intrctbility, by Grey nd Johnson

Finding stisfying ssignment is computtionlly difficult problem I cn't find n efficient lgorizm, becuse no such lgorizm is possible! Source: Computers nd Intrctbility, by Grey nd Johnson

Finding stisfying ssignment is computtionlly difficult problem I cn't find n efficient lgorizm, but neither cn ll these fmous people Source: Computers nd Intrctbility, by Grey nd Johnson

Finding stisfying ssignment is computtionlly difficult problem I showed it is NP-Complete And ll of these smrt people encountered other NPcomplete problems... And could not solve it, yet... Source: Computers nd Intrctbility, by Grey nd Johnson

Finding stisfying ssignment is computtionlly difficult problem Stephen Cook 1939 - NP-complete complete, My 1971 I cn't find n efficient lgorizm, but neither cn ll these fmous people Source: Computers nd Intrctbility, by Grey nd Johnson

The most importnt ide in Informtion Finite it Universlity Lnguge of Cn construct everything from finite set of building blocks

Is there finite universl set of building blocks? Cn construct everything. DNA ABCDE... +, -, x, / M-boxes

Wht is the function?

Wht Anlysis is the of Rely function? Circuits Red = vrible b Blue = complement of c b c d b c d b c

Wht Anlysis is the of Rely function? Circuits Red = vrible Blue = complement of odd prity even prity The key: 1 cuses switch in prity 0 keeps the prity the sme

Wht Anlysis is the of Rely function? Circuits Red = vrible Blue = complement of odd prity even prity The key: 1 cuses switch in prity 0 keeps the prity the sme

Wht Anlysis is the of Rely function? Circuits Red = vrible Blue = complement of odd prity even prity The key: 1 cuses switch in prity 0 keeps the prity the sme

Importnt note Shnnon Used the Dul Nottion In this HW set use the nottion from clss! 1 = closed circuit 0 = open circuit