Truth and How to See It CS-113 Gene Itkis.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Logic Gates.
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Programmable Logic Controllers.
Logic Gates.
Logic Gates.
Boolean Algebra and Logic Gate
Discrete Structures Chapter 1 Part B Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
10/22/2004EE 42 fall 2004 lecture 221 Lecture #22 Truth tables and gates This week: Circuits for digital devices.
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Halting Problem. Background - Halting Problem Common error: Program goes into an infinite loop. Wouldn’t it be nice to have a tool that would warn us.
The Laws of Logic: Boolean Algebra A State High Math Club Presentation START==TRUE.
Valid Arguments Decide if each argument is valid. If the stones are rolling, they are not gathering moss. If the stones are not gathering moss, they are.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
TODAY YOU ARE LEARNING to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams.
Review I Rosen , 3.1 Know your definitions!
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
 In studying digital integrated circuits, one must start with the simplest group of circuit, the SSIs or Small Scale Integrated Circuits. Since these.
LOGIC GATES.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Gates and Logic Dr John Cowell phones off (please)
Circuit Simplification Truth Table  Minimized Logic Gates.
A-Level Computing#BristolMet Session Objectives#6 MUST understand and produce simple logic diagrams using the operations NOT, AND and OR SHOULD explain.
CS203 Discrete Mathematical Structures Logic (2).
January 30, 2002Applied Discrete Mathematics Week 1: Logic and Sets 1 Let’s Talk About Logic Logic is a system based on propositions.Logic is a system.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Boolean and Sequential Logic Last week – Basic Gates AND OR NOT NOR XOR NAND.
Name ______ Lesson 2 – Patterns from Gr. 6_ Page 12 Tables
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
NAND, NOR, and EXOR (more primitive logical gates) CS Computer Architecture David Mayer.
Logic Gates and Boolean Algebra Introduction to Logic II.
Circuits, Truth Tables & Boolean Algebra. Expressions Can describe circuits in terms of Boolean expression.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Computer Architecture & Operations I
Computer Architecture & Operations I
CPS120 Introduction to Computer Science
Morgan Kaufmann Publishers
Eng. Mai Z. Alyazji October, 2016
Logic Gates and Boolean Algebra
Logic Gates.
Direct Proof by Contraposition Direct Proof by Contradiction
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Exclusive OR Gate.
Basic Logical Operations (Fascinating)
Digital Signals Digital Signals have two basic states:
Dr. Clincy Professor of CS
CS203 Discrete Mathematical Structures
Computer Science 210 Computer Organization
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Dr. Clincy Professor of CS
Logic Gates.
CS Chapter 3 (3A and ) Part 3 of 8
PROOF BY CONTRADICTION
Logic Gates.
CS Chapter 3 (3A and ) – Part 2 of 5
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Halting Problem.
GCSE Computer Science – Logic Gates & Boolean Expressions
Today You are Learning simple logic diagrams using the operations AND, OR and NOT truth tables combining Boolean operators using AND, OR and NOT.
Logic Gates.
Truth tables Mrs. Palmer.
Evaluating Boolean expressions
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Further binary, Logic diagrams and truth tables
DIGITAL ELECTRONICS AND LOGIC GATES. ANALOG SIGNAL:- Analog signal is continuous time varying current or voltage signal.
Presentation transcript:

Truth and How to See It CS-113 Gene Itkis

The Truth Do you solemnly swear to tell the truth, the whole truth and nothing but the truth, so help you G*d?

Truth Truth - αλήθεια (alethia) Un-hiddenness, un-concealness Proof: “uncovering the truth”, “making truth self-evident” ?

Creation (almost) ex nihilo Hmm… Creation (almost) ex nihilo 11 11 10 10 1 10/11 1 1 1 10 10

On What You See Tiger When on lion’s cage you see a sign “Tiger” – Trust not thine eyes! Tiger

As long as it is done right !

CS as problem solving What is the most famous/grand question answered by a computer: The Great Question of Life, the Universe and Everything

Universal algorithm (ISO) Input the PROBLEM Solve the PROBLEM Output the ANSWER

The Universe U={ “objects” } Popular (Sub-)Universes: Integers: I ={0,1,-1,2,…}; Natural numbers: N ={1,2,…}; Rationals: Q ={a/b : aI, bN }; Reals: R

Computers are dumb! People are nice: Computers are not: Understanding will try to understand what you really meant fill in some gaps identify and correct some of your mistakes Forgiving provide some error-correction Computers are not: “do what I mean not what I say” never works your mistake is its command

Conclusion Must be extra precise in what you say Must prove that what you say is correct Must build in your own error-detection and error-correction (if/when things do go wrong – e.g., when assumptions turn out to be false)

Everything Quantifiers: Universal:  = “for every”, “for all” a,bN . a+b N Existential:  = “for some”, “there exists” aN bN . a·b=1 FALSE a≠0Q bQ . a·b=1 TRUE

AND (2b2b)  : or , e.g. x,S . (xS)  (xS)  : and, e.g. aN bN . a·b=b  b/a=b  : negation, e.g. claim C . C  C : set union, e.g. {1,2,3}{2,4}={1,2,3,4} AB={x: xA  xB}  : set intersection, e.g. {1,2,3}{2,4}={2} A  B={x: xA  xB}  : (proper) subset, e.g. {2}{2,4}  : subset or equal, e.g. set S . (S  S)  (  S)

Implications  : implies, A  B (“A implies B” or “if A then B”) “A  B” = “A  B” E.g. if pigs can fly then …

Circuits Output Input  1  1  1      

 Universal Gate: NAND  a = a NAND 1 a  b = ( a NAND b ) = 1 NAND (a NAND b) a  b = … homework Any Boolean function (truth table) can be expressed in terms of a circuit of AND (), OR () and NOT () gates  it can also be expressed using only NAND gates

XOR : Exclusive OR  : Exclusive OR (a or b but not both) also a  b= (a+b mod 2) 0  0 = 1  1 = 0 1  0 = 0  1 = 1 a = a  1 a  b = …homework a  b = … homework