Great Ideas Alan Turing – What is computable? A task is computable if one can specify a sequence of instructions which when followed will result in the.

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

CT455: Computer Organization Logic gate
1 Computer Programming Boolean Logic Copyright © Texas Education Agency, 2013.
INTRODUCTION LOGICAL OPERATIONS TRUTH TABLE AND RULES.
Chapter 4 Gates and Circuits.
Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Data Storage – Part 1 CS 1 Introduction to Computers and Computer Technology Rick Graziani Fall 2013.
EECC341 - Shaaban #1 Lec # 1 Winter Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
Building Security System A new building is creating a security system with three alarm types. A flood alarm, a fire alarm and an intrusion alarm. If the.
Lecture 2 Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 153, Engineering Building To insert your company logo on this slide From.
Module 7 Hardware. Introduction Switches are the basic blocks of computer hardware. We build increasingly complex hardware from these simple switches.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Great Ideas Alan Turing – What is computable? A task is computable if one can specify a sequence of instructions which when followed will result in the.
Great Ideas Alan Turing – What is computable? A task is computable if one can specify a sequence of instructions which when followed will result in the.
3. DIGITAL ELECTRONICS..
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
1.1 1 Introduction Foundations of Computer Science  Cengage Learning.
Chapter 4 Gates and Circuits.
Boolean Logic By: Arthur Brooks February 25, 2003 Think, Speak, and Write Computer Science.
Think about the following expression If the number entered is greater than 15 but less than 25 or the number is 100 and the letter chosen is after p but.
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Chapter 4 Gates and Circuits.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Binary Logic.
CSCI-235 Micro-Computers in Science Hardware Design Part I.
Boolean Algebra By Lindsey Curtis & Tomas Filip. Boolean Algebra An abstract mathematical system used to describe relationships between sets Mainly used.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
CSC 107 – Programming For Science. Follow-Up From Last Lecture.
CPS120: Introduction to Computer Science
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
LOGIC GATES A logic gate is an elementary building block of a digital circuit.digital circuit Most logic gates have two inputs and one output terminals.
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
 In studying digital integrated circuits, one must start with the simplest group of circuit, the SSIs or Small Scale Integrated Circuits. Since these.
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
Introduction to Chapter 3  Now that we understand the concept of binary numbers, we will study ways of describing how systems using binary logic levels.
Chapter 1 Introduction.
CSCI-100 Introduction to Computing Hardware Design Part I.
A-Level Computing#BristolMet Session Objectives#6 MUST understand and produce simple logic diagrams using the operations NOT, AND and OR SHOULD explain.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
Who invented the computer?
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits Lecture 5: Binary Logic and Gates.
DIGITAL ELECTRONICS. Everything in digital world is based on binary system. Numerically it involves only two symbols 0 or 1. –0 = False = No –1 = True.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Logic gates.
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Basics of Logic gates - Part 1
Morgan Kaufmann Publishers
Logic Gates.
Computer Science 210 Computer Organization
CSCI-100 Introduction to Computing
CS140 Lecture 03: The Machinery of Computation: Combinational Logic
Digital Signals Digital Signals have two basic states:
Chapter 4 Gates and Circuits.
CS140 Lecture 02a: The Machinery of Computation: Circuits and Gates
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Computer Science 210 Computer Organization
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
Truth tables Mrs. Palmer.
Introductory Concepts
Copyright © Cengage Learning. All rights reserved.
Boolean Algebra and Gate Networks
COMPUTER ORGANIZATION
Presentation transcript:

Great Ideas Alan Turing – What is computable? A task is computable if one can specify a sequence of instructions which when followed will result in the completion of the task. John Von Neumann – Stored program concept Developed the concept of storing a program in the computer’s memory rather than it’s circuitry Copyright © 2008 by Helene G. Kershner

Great Ideas Technological advances Vacuum tube  transistor  integrated circuits (multiple transistors on a chip)  VLSI (very large scale integration) Microprocessor chip – computer on a chip High level programming language – people can build “user friendly” software” Changes in memory device hardware Storing information digitally, making use of the concept that computers work with two states: on/off, 1/0, yes/no, high current/low current The computer is a binary machine Copyright © 2008 by Helene G. Kershner

Great Ideas The computer is a binary machine Perform mathematics Perform operations on letters that form words Represent images in grayscale and color Represent sound Copyright © 2008 by Helene G. Kershner

The computer is a binary machine Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Boolean Algebra (Boolean Logic) is an algebra for symbolically representing problems in logic & analyzing them mathematically. Based on work of George Boole English mathematician An Investigation of the Laws of Thought Published in 1854 Reduced logic of human thought to mathematical operations An analysis of how natural language works if it were logical Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra In 1938 Claude E. Shannon of MIT Showed that Boolean logic could be applied to the design of relay networks in telephone systems (the ability to switch signals from one place to another automatically) Invented branch of mathematics called Information Theory Information Theory applied Boolean algebra to certain engineering problems systems Today, boolean algebra, as applied to computer hardware design is also known as Switching Theory. Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Boolean Logic is an abstraction. Definition -- Abstraction: Is the process of taking away or removing characteristics from something in order to reduce it to a set of essential characteristics (Whatis.com) not concrete: not relating to concrete objects but expressing something that can only be appreciated intellectually (Encarta.msn.com) Considered apart from concrete existence: an abstract concept ( Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Applying Boolean Logic to computers allows them to handle very complex problems using complicated connections of simple components. Designing hardware and software is very complicated because we are using them to deal with complex tasks. Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Abstraction allows the designer to be separated from the machine to get a clearer picture of what needs to be done. allows us to drive a car without knowing how the engine works allows computer users to work with the hardware without knowing exactly how the machine does what it does. Add a flash stick, the software will recognize it Plug in a digital camera and the software will find it Move music onto my iPod from the hard-drive without having any real idea what the computer is doing.

Computers: Complex tasks with Simple Components Basic Computer Components Switches On/off, high current / low current, 1/0 Connectors Wires that connect switches – pipes Must be able to branch, one or more paths Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Logic Gates Hardware interpretation of boolean logic Universal building blocks, special circuits that perform the operation of: AND OR NOT From these basic elements, computer engineers can design “anything” Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Different and equal ways to represent this kind of logic Using the English works AND, OR, NOT Using Mathematical symbols Λ, ۰ (means AND) V, + (means OR) ~, ¯ (means NOT) Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Different and equal ways to represent this kind of logic Engineering symbols inverter/flipper Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Look at statements that can be determined to be true or false. I think therefore I am. This can be either true or false Yesterday my daughter in college called needing money. This can be either true or false My son lives in Washington DC. This can also be either true or false Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Look at statements that cannot be to be true or false. A Question is not a statement: What time is it? While an answer to a question may be Yes or No, the statement is neither true or false: Is it 3 o’clock? A command is not a statement: You MUST get an A in this class! Turn at the next corner. Wishes are not statements: I’d like to make a million dollars. Have a Happy Thanksgiving. Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Different and equal ways to represent this kind of logic Truth Tables Visually shows true/false values and the results (inputs and outputs) of a logic example. Describes what is happening in a logic gate or logic statement Uses T/F, 1/0 Copyright © 2008 by Helene G. Kershner

Boolean Logic / Boolean Algebra Logic can be applied to statements. Statements have the property of either being True (T, 1) or False (F, 0). Not everything we say is a statement because it cannot be thought of as having the value of either True or False. Copyright © 2008 by Helene G. Kershner

Venn Diagrams: A, B Boolean Logic The set A is mutually exclusive from set B They have nothing in common Copyright © 2009 by Helene G. Kershner

Venn Diagrams: A AND B Boolean Logic The set A and the set B have a common area. The pink area labeled 2, is represented by A AND B A B Copyright © 2009 by Helene G. Kershner

Logic -- AND AND combines two statements/inputs either one of which can be True or False A statement using AND is only true if both parts of the sentence are true John has a sub-prime mortgage AND John cannot pay his mortgage. Copyright © 2009 by Helene G. Kershner

Logic -- AND John has a sub-prime mortgage AND John cannot pay his mortgage. Truth table identifies the possibilities for AND: sub-prime mortgage AND cannot pay mortgage Result F F F F T F T F F T T T Copyright © 2009 by Helene G. Kershner

Logic -- AND A: sub-prime mortgage B: cannot pay mortgage A AND B Result F F F F T F T F F T T T Copyright © 2009 by Helene G. Kershner

Venn Diagram: A OR B Boolean Logic A OR B represents the area covered by all of A as well as all of B. A B Copyright © 2009 by Helene G. Kershner

Logic – OR OR combines two statements/inputs either one of which can be True or False A statement using OR is true if either parts of the sentence is true. I like mango OR chocolate ice cream. John has a sub-prime mortgage OR John has a traditional mortgage. John can afford his mortgage OR John is unable to pay his mortgage.. John has a sub-prime mortgage OR John is unable to pay his mortgage. Copyright © 2009 by Helene G. Kershner

Logic – OR I like mango OR chocolate ice cream. John has a sub-prime mortgage OR John has a traditional mortgage. John can afford his mortgage OR John is unable to pay his mortgage.. John has a sub-prime mortgage OR John is unable to pay his mortgage. A OR B A OR B R F F F F T T T F T T T T Copyright © 2008 by Helene G. Kershner

Logic – OR A: John has a sub-prime mortgage B: John is unable to pay his mortgage. A OR B Result A OR B R F F F F T T T F T T T T Copyright © 2009 by Helene G. Kershner

Venn Diagram: NOT A Boolean Logic NOT A is the same as ~ A NOT A is everything that is outside of A. A B Copyright © 2009 by Helene G. Kershner

Logic – NOT/Invert The NOT command, flips or Inverts the value it is given. The operation switches that statement between True and False I have a traditional mortgage. I do NOT have a sub-prime mortgage. NOT a sub-prime mortgage INVERTs or is the opposite sub-prime mortgage which is a traditional mortgage. A = I eat peanut-butter NOT A means I do NOT eat peanut-butter If A is True, then NOT A is False If A is False, then NOT A is True A = I love peanut-butter For me A is False, so NOT A would be True Copyright © 2009 by Helene G. Kershner

Logic – NOT/Invert Truth Table A NOT A = ~A Copyright © 2009 by Helene G. Kershner

Logic Symbols – Order of Operations Order of Operations: In a logic statement using the three operators we have learned the order is Parenthesis () NOT  NOT, ~ ¯¯ AND  AND, ۰, Λ OR  OR, +, V Copyright © 2009 by Helene G. Kershner

Venn Diagram: NOT (A AND B) Boolean Logic NOT (A OR B) is the same as area labeled 4. It is the area that is NOT or outside of (A OR B). AB Copyright © 2009 by Helene G. Kershner

VENN Diagrams: NOT (A OR B) Boolean Logic NOT (A AND B) is the pink area. (A AND B) is the white area, so NOT (A AND B) is all the area outside of (A AND B). A B Copyright © 2009 by Helene G. Kershner

Using Boolean Algebra in the “Real World” Boolean Operators

Logic Logic problems can relate back to English statements: A newly constructed building has three types of security alarms. It has an intrusion alarm, a fire alarm and a flood alarm. If the intrusion or fire alarm goes off then the police department is called. If the fire or flood alarm goes off then the fire department is called. But if the flood alarm goes off don’t call the police. And if the intrusion alarm goes off don’t call the fire department. A = intrusion alarm A OR B = Police B = fire alarm C = flood alarm B OR C = Fire Department Copyright © 2008 by Helene G. Kershner