Cambridge International AS & A Level Computer Science

Similar documents
Boolean Algebra A B A AND B = A*B A B A OR B = A+B

(Refer Slide Time 3:31)

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

LECTURE 2 An Introduction to Boolean Algebra

Circuit simplification examples

Information Science 1

Logic Gates and Boolean Algebra ENT263

Experiment 3: Logic Simplification

Circuit analysis summary

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

Activity Boolean Algebra

Example Candidate Responses. Cambridge International AS & A Level Computer Science. Paper 3

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

Introduction to Boolean Algebra

Experiment 4 Boolean Functions Implementation

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

Introduction to Boolean Algebra

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Boolean Algebra & Digital Logic

SQA Advanced Unit specification: general information for centres

Combinational Circuits Digital Logic (Materials taken primarily from:

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

AQA Computer Science A-Level Boolean algebra Advanced Notes

Cambridge International AS & A Level Information Technology

Propositional Calculus. Math Foundations of Computer Science

Boolean Analysis of Logic Circuits

Chapter 3. Boolean Algebra and Digital Logic

COMP combinational logic 1 Jan. 18, 2016

Ch. 5 : Boolean Algebra &

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world

Lecture (04) Boolean Algebra and Logic Gates

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

IT 201 Digital System Design Module II Notes

Logic Design: Part 2

Designing Computer Systems Boolean Algebra

1.1 - Introduction to Sets

Motivating Example. Lecture 10: How does a computer act so logically? Simple Example: Boolean Variables

Boolean Algebra Boolean Algebra

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

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Module -7. Karnaugh Maps

Dr. Chuck Cartledge. 10 June 2015

Friday 18 January 2013 Afternoon

Boolean algebra. June 17, Howard Huang 1

ACSL INTRODUCES A NEW ELEMENTARY DIVISION

(Refer Slide Time 6:48)

Summary. Boolean Addition

Read this before starting!

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

Lecture 1: Introduction to Digital Logic Design

Computer Science. Unit-4: Introduction to Boolean Algebra

LECTURE 04 MAKING DECISIONS

Lecture 3: Binary Subtraction, Switching Algebra, Gates, and Algebraic Expressions

Combinational Logic Circuits

Chapter 2 Boolean algebra and Logic Gates

Chapter 4: Making Decisions

BOOLEAN ALGEBRA AND CIRCUITS

EE292: Fundamentals of ECE

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

Chapter 4: Making Decisions

Introduction to Boolean logic and Logical Gates

DKT 122/3 DIGITAL SYSTEM 1

Unit-IV Boolean Algebra

Booleans, Logical Expressions, and Predicates

OCR H446 A-Level Computer Science

8.3 Common Loop Patterns

4 KARNAUGH MAP MINIMIZATION

BITS, BYTES, AND INTEGERS

Chapter 4: Making Decisions. Copyright 2012 Pearson Education, Inc. Sunday, September 7, 14

Computer Engineering Chapter 3 Boolean Algebra

This podcast will demonstrate a logical approach as to how a computer adds through logical gates.

CS40-S13: Functional Completeness

CPSC 121: Models of Computation

BITG 1223: Selection Control Structure by: ZARITA (FTMK) LECTURE 4 (Sem 1, 16/17)

Starting Boolean Algebra

ENGIN 112. Intro to Electrical and Computer Engineering

Introduction to Computer Architecture

ADAPTIVE MAP FOR SIMPLIFYING BOOLEAN EXPRESSIONS

Simplification of Boolean Functions

CS61C : Machine Structures

4. Write a sum-of-products representation of the following circuit. Y = (A + B + C) (A + B + C)

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

EEE130 Digital Electronics I Lecture #4_1

SETS. Sets are of two sorts: finite infinite A system of sets is a set, whose elements are again sets.

DeMorgan's Theorem. George Self. 1 Introduction

CS470: Computer Architecture. AMD Quad Core

Combinational Logic & Circuits

Preparing for AS Level Further Mathematics

Lecture 3: More SQL Basics

Boolean Logic & Branching Lab Conditional Tests

Section A Arithmetic ( 5) Exercise A

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

2.6 BOOLEAN FUNCTIONS

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

Austin Herring Recitation 002 ECE 200 Project December 4, 2013

Selection statements. CSE 1310 Introduction to Computers and Programming Alexandra Stefan University of Texas at Arlington

Example Candidate Responses. Cambridge International AS & A Level Computer Science. Paper 2

CE161-4-AU UNIVERSITY OF ESSEX. Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE. Time allowed: TWO hours

Transcription:

Topic Support Guide Cambridge International AS & A Level Computer Science 9608 For examination from 2017 Topic 3.3.2 Boolean algebra

Cambridge International Examinations retains the copyright on all its publications. Registered Centres are permitted to copy material from this booklet for their own internal use. However, we cannot give permission to Centres to photocopy any material that is acknowledged to a third party even for internal use within a Centre. Cambridge International Examinations 2016 Version 1.1 Updated: 10.03.16

Contents Introduction... 2 How to use this guide... 2 Learning objectives... 2 Prior knowledge... 2 1. Key terms... 3 2. Theory... 4 2.1 What is Boolean algebra?... 4 2.2 Writing Boolean expressions... 5 2.3 Boolean laws and simplification... 6 2.4 De Morgan s Laws... 8 3. Online resources... 9 3.1 Websites... 9 4. Class and homework activities... 10 4.1 Quiz... 10 4.2 Homework questions... 10 Topic support guide 9608 Topic 3.3.2 Boolean algebra 1

Introduction Introduction How to use this guide The aim of this guide is to facilitate your teaching of the Cambridge International AS and A Level Computer Science topic 3.3.2 Boolean algebra, part of the advanced theory topic 3.3 Hardware. The guidance and activities in this resource are designed to help teachers devise programmes of study which provide teaching time devoted to theory work as well as activities that consolidate learning. Section 1 lists some key terms used in this topic and their definitions. Section 2 introduces the theory of Boolean algebra and provides some example expressions and logic circuits. Section 3 lists some online resources that you or your learners may find useful. Section 4 gives ideas for class and homework activities. Learning objectives Using this document should help you guide learners in the following syllabus learning objectives: show understanding of Boolean algebra show understanding of De Morgan s Laws perform Boolean algebra using De Morgan s Laws simplify a logic circuit/expression using Boolean algebra. Prior knowledge Before you begin teaching this topic you should: understand what Boolean algebra is be familiar with how to write Boolean expressions be familiar with the rules and laws that can be used to simplify Boolean expressions practise simplifying logic circuits and expressions. 2 Topic support guide 9608 Topic 3.3.2 Boolean algebra

Key terms 1. Key terms Word/phrase Boolean value logic gate proposition truth table Meaning a value that is true or false a component in an electronic circuit that produces an output from a combination of inputs, based on a logical function such as AND, OR, or NOT a statement or hypothesis a table to show all the outputs from a combination of inputs Topic support guide 9608 Topic 3.3.2 Boolean algebra 3

Theory and examples 2. Theory and examples 2.1 What is Boolean algebra? Boolean algebra is a form of mathematics that deals with statements and their Boolean values. It is named after its inventor George Boole, who is thought to be one of the founders of computer science. In Boolean algebra variables and functions take on one of two values: true or false. These values can also be referred to as 1 for true and 0 for false. 2.1.1 Example statements If we take a simple statement we can start to see the operations of Boolean algebra: I will wear a coat if it is very cold or if it is raining. The proposition I will wear a coat will be true if either of the propositions It is very cold or It is raining are true. We can represent this as a diagram: It is very cold It is raining OR I will wear a coat As a truth table a table that shows the output for each possible input combination this is: It is very cold It is raining I will wear a coat It is very cold It is raining I will wear a coat False False False 0 0 0 False True True or 0 1 1 True False True 1 0 1 True True True 1 1 1 We could then make our statement more complex by saying: If I do not go on the bus, I will wear a coat if it is very cold or if it is raining. 4 Topic support guide 9608 Topic 3.3.2 Boolean algebra

Theory and examples We can represent this as a diagram: It is very cold It is raining OR R AND I will wear a coat I will go on the bus NO If we look at the logic of our diagram we can see that if it is very cold or it is raining and I am not going on the bus, I will wear a coat. But if I go on the bus I will not wear a coat regardless of whether it is very cold or it is raining. 2.2 Writing Boolean expressions 2.2.1 Brackets Boolean operations have an order in which they are carried out. This order is: Highest NOT Middle AND Lowest OR However, anything that appears inside brackets has the normal mathematical rule apply, that it is always carried out first. We can begin to create a Boolean expression from our diagram. Note that the brackets around the OR statement mean that this will be evaluated before the AND statement: Coat = ((NOT Bus) AND (Very cold OR Raining)) 2.2.2 Symbols Boolean expressions often use symbols for the operators. Different symbols can be used, but we will use: Symbol Operator NOT AND OR Topic support guide 9608 Topic 3.3.2 Boolean algebra 5

Theory and examples In Boolean algebra, parts of a statement are often given a single letter. This means we can write our statement as: C = (( ) (V + R)) If we now consider the order that Boolean operators have to be carried out in, the NOT statement will be evaluated first, so we can simplify our statement slightly by removing the brackets: C = (V + R) 2.3 Boolean laws and simplification 2.3.1 Boolean laws There are some further general rules (laws) in Boolean algebra. We will use the values A, B and C to demonstrate these rules. The rules apply to the AND and OR logic gates: Rule (law) AND OR Commutative A B = B A A + B = B + A Associative (A B) C = A (B C) (A + B) + C = A + (B + C) Distributive A (B + C) = A B + A.C A + (B C) = (A + B) (A + C) Looking at the table above, we can see in commutative law that A.B is the same as B.A. If we represent this in terms of a logic gate we are saying that: A B is the same as B A We can also see in associative law that (A.B).C is the same as A.(B.C). If we represent this in terms of a logic circuit we can say that: A B C is the same as A B C 2.3.2 Simplification (reduction) rules There are also some simplifications we need to be aware of for Boolean operators: A A = A A + A = A 6 Topic support guide 9608 Topic 3.3.2 Boolean algebra

Theory and examples ( ) = A A = 0 A + = 1 By looking at our example and from understanding the rules that are applied and the simplifications that can occur, we now have a greater understanding of the workings of Boolean algebra. 2.3.3 Worked simplification example We can now put our knowledge into practice with a further example. Consider the following logic circuit: A B X C 1) The first set of gates gives: A + B B C C B 2) The output of the two AND gates is passed through an OR gate: B C + C B 3) The output of this and the OR gate (A + B) is then passed through an AND gate. The whole expression is therefore: X = (A + B) ((B C) + (C B)) 4) We can now apply the simplification rule A + A = A to simplify the expression: (B C) + (C B) = (B C) 5) The final simplified expression is therefore: X = (A + B) (B C) Topic support guide 9608 Topic 3.3.2 Boolean algebra 7

Theory and examples We now have a simpler expression than we first started off with and as a result we can create a simpler logic circuit. 2.4 De Morgan s Laws 2.4.1 What are De Morgan s Laws? Augustus De Morgan was a contemporary of George Boole. He was the first professor of mathematics at the University of London. De Morgan did not actually create the law given his name, but is credited with stating it. De Morgan s Laws are that: 1) when the NOT operator is applied to the AND of two variables, it is equal to the NOT applied to each of the variables with an OR in between: ( ) = + 2) when the NOT operator is applied to the OR of two variables, it is equal to the NOT applied to each of the two variables with an AND in between: ( ) = 2.4.2 Worked example We can apply De Morgan s Laws to the statement we made: If I do not go on the bus, I will wear a coat if it is very cold or if it is raining. We can simplify this statement to show the outcome I am not going to wear a coat : Original statement: C = (V + R) We can add NOT to show I am not going to wear a coat: = We can then apply De Morgan s Law: = ( ) Then simplify and apply De Morgan s Law again, to give: = B + 8 Topic support guide 9608 Topic 3.3.2 Boolean algebra

Online resources 3. Online resources The following are useful resources for understanding Boolean algebra. The content of websites is dynamic and constantly changing. Schools are strongly advised to check each site for content and accessibility prior to using it with learners. Cambridge International Examinations is not responsible for the accuracy or content of information contained in these sites. The inclusion of a link to an external website should not be understood to be an endorsement of that website or the site's owners (or their products/services). 3.1 Websites Learn about electronics website. Explains the laws and rules for simplification of Boolean expressions, as well as De Morgan s laws, and includes a worked example: www.learnabout-electronics.org/digital/dig23.php Worked examples of simplification of Boolean expressions, from Mississippi College Computer Science site: http://sandbox.mc.edu/~bennet/cs110/boolalg/simple.html WJEC documentation of Boolean algebra simplification that includes worked examples, exercises and solutions for simplification of circuits and expressions: www.wjec.co.uk/uploads/publications/4891.doc?language_id=1 Topic support guide 9608 Topic 3.3.2 Boolean algebra 9

Class and homework activities 4. Class and homework activities 4.1 Quiz Multiple-choice items on Boolean algebra and other aspects of digital logic on the Learn about electronics site: www.learnabout-electronics.org/digital/dig25.php Boolean Algebra quiz from the University of Surrey most questions can be used: www.ee.surrey.ac.uk/projects/labview/boolalgebra/quiz/index.html 4.2 Homework questions 1. Use Boolean algebra to simplify the following expression: ( ) + B 2. (i) Use Boolean algebra to simplify the following expression: (ii) Draw a logic circuit that corresponds to your simplified expression 3. Use Boolean algebra to simplify the following expression: 10 Topic support guide 9608 Topic 3.3.2 Boolean algebra