AQA Computer Science A-Level Boolean algebra Advanced Notes

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

Cambridge International AS & A Level Computer Science

At this point in our study of digital circuits, we have two methods for representing combinational logic: schematics and truth tables.

JAVA OPERATORS GENERAL

If Control Construct

Introduction to Boolean Algebra

Logical Operators and switch

Introduction to Boolean Algebra

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

PRG PROGRAMMING ESSENTIALS. Lecture 2 Program flow, Conditionals, Loops

Boolean Algebra Boolean Algebra

F453 Module 7: Programming Techniques. 7.2: Methods for defining syntax

1.8 Intro to Variables, Algebraic Expressions, and Equations

LECTURE 2 An Introduction to Boolean Algebra

DIGITAL SYSTEM DESIGN

Stage 7 Checklists Have you reached this Standard?

SOFTWARE TESTING UNIT-VI Logic Based Testing

Flow of Control. Flow of control The order in which statements are executed. Transfer of control

V2 2/4/ Ch Programming in C. Flow of Control. Flow of Control. Flow of control The order in which statements are executed

CSC Discrete Math I, Spring Sets

GO - OPERATORS. This tutorial will explain the arithmetic, relational, logical, bitwise, assignment and other operators one by one.

BOOLEAN ALGEBRA AND CIRCUITS

Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups:

Cecil Jones Academy Mathematics Fundamental Map

2.2 Set Operations. Introduction DEFINITION 1. EXAMPLE 1 The union of the sets {1, 3, 5} and {1, 2, 3} is the set {1, 2, 3, 5}; that is, EXAMPLE 2

Chapter 3: Operators, Expressions and Type Conversion

To become familiar with array manipulation, searching, and sorting.

Logical statements and. Lecture 1 ICOM 4075

Loops and Expression Types

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

Information Science 1

2.2 Order of Operations

1.4 MULTIPLYING WHOLE NUMBER EXPRESSIONS

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

CS112 Lecture: Working with Numbers

1.1 - Introduction to Sets

Multiple-Subscripted Arrays

Definitions. 03 Logic networks Boolean algebra. Boolean set: B 0,

Chapter 1: Review of Number Systems

Unit 1 Algebraic Functions and Graphs

Starting Boolean Algebra

Building Concepts: Building Expressions

WEEK 4 OPERATORS, EXPRESSIONS AND STATEMENTS

Programming Lecture 3

CITS2401 Computer Analysis & Visualisation

2nd Paragraph should make a point (could be an advantage or disadvantage) and explain the point fully giving an example where necessary.

Chapter 4: Making Decisions

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

Basic data types. Building blocks of computation

Operators. Java operators are classified into three categories:

Lecture (04) Boolean Algebra and Logic Gates

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

Introduction to Programming, Aug-Dec 2006

Chapter 4: Making Decisions

Accuplacer Arithmetic Study Guide

Introduction II. Sets. Terminology III. Definition. Definition. Definition. Example

Lab copy. Do not remove! Mathematics 152 Spring 1999 Notes on the course calculator. 1. The calculator VC. The web page

Department of Computer Science

Chapter 2: Using Data

CS 61C Summer 2012 Discussion 11 State, Timing, and CPU (Solutions)

Introduction to Computer Programming CSCI-UA 2. Review Midterm Exam 1

Desktop Command window

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Basic Structure of Denotational Definitions

Therefore, after becoming familiar with the Matrix Method, you will be able to solve a system of two linear equations in four different ways.

2 Review of Set Theory

Prefix/Infix/Postfix Notation

EC121 Mathematical Techniques A Revision Notes

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Switching Circuits & Logic Design

Logic Design: Part 2

Microsoft Excel 2010

Programming Languages Third Edition

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

CSCE 120: Learning To Code

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 1 DLD P VIDYA SAGAR

(Refer Slide Time: 01:12)

Algebra of Sets (Mathematics & Logic A)

Mathematically Rigorous Software Design Review of mathematical prerequisites

Watkins Mill High School. Algebra 2. Math Challenge

4 KARNAUGH MAP MINIMIZATION

Hello, World and Variables

Propositional Logic. Part I

Formulas and Functions

IT 201 Digital System Design Module II Notes

Flow Control. So Far: Writing simple statements that get executed one after another.

7/25/2016. Example: Addition of Unsigned Bit Patterns. ECE 120: Introduction to Computing. Adding Two Non-Negative Patterns Can Overflow

YOLOP Language Reference Manual


Mathematics Year 9-11 Skills and Knowledge Checklist. Name: Class: Set : Premier Date Year 9 MEG :

NZ Mathematics Level 1-Yr 9 Curriculum Objectives Addressed Within Numbers Up! Volcanic Panic

Computational Expression

MAT 090 Brian Killough s Instructor Notes Strayer University

CS112 Lecture: Variables, Expressions, Computation, Constants, Numeric Input-Output

Lecture 5: Making Decisions

List of NEW Maths content

A point is pictured by a dot. While a dot must have some size, the point it represents has no size. Points are named by capital letters..

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Compiler Design

CMAT Language - Language Reference Manual COMS 4115

YEAR 10- Mathematics Term 1 plan

Transcription:

Q Computer Science -Level 465 Boolean algebra dvanced Notes

Specification: 4651 Using Boolean algebra: Be familiar with the use of Boolean identities and De Morgan s laws to manipulate and simplify Boolean expressions

Boolean algebra Just like algebra in Mathematics, Boolean algebra concerns representing values with letters and simplifying expressions Boolean algebra uses the Boolean values TRUE and FLSE which can be represented as 1 and 0 respectively Notation Expression Meaning, B, C, etc n unknown Boolean value being represented by a letter just like x or y in conventional algebra NOT n overline represents the NOT operation being applied to what is below the line B ND B, said dot B where a dot represents the ND (multiplication) operation B + B n alternative notation for ND B Just like in Mathematics, the product of two algebraic values can be represented without any symbol OR B, where an addition symbol represents the OR operation Order of precedence lgebraic operations have an order of precedence, meaning that some operations must be applied before others You may have met BODMS in Mathematics, this is the same idea Operator Brackets NOT ND OR Precedence Highest Lowest For example, the expression B OR NOT C ND would actually be carried out in the order B OR ((NOT C) ND )

Boolean identities There are a number of useful identities which can be used to simplify Boolean expressions 0 = 0 B 1 = B C C = C nything ND 0 is always 0 This is because the ND operation represents multiplication nything ND 1 is always the original value This is because the ND operation represents multiplication ny Boolean value ND itself is equivalent to just the value, as the truth table below shows C C C 1 1 1 = 1 0 0 0 = 0 D + 0 = D E + 1 = 1 F + F = F ny Boolean value OR 0 is the equivalent of adding 0 to the value, which leaves the value unchanged ny Boolean value OR 1 is the equivalent of adding 1 to the value, which will always result in 1 ny Boolean value OR itself equals the value itself, as the truth table shows F F + F 1 1 + 1 = 1 0 0 + 0 = 0 G = G ny Boolean value with two lines above has had the NOT operation performed on it twice, meaning the value has not been changed

De Morgan s laws Named after British logician ugustus De Morgan, these two laws of Boolean algebra come in incredibly useful when simplifying expressions De Morgan s laws can be remembered by recalling the phrase: break the bar and change the sign Where the bar refers to an overline representing the NOT operation and the sign refers to changing between + ( OR ) and ( ND ) For example, the Boolean expression + B can have De Morgan s law applied to it as follows: Break the bar: + B Change the sign: B + B = B De Morgan s law can also be applied in reverse, by changing the sign and building the bar For example, the Boolean expression C + D can be simplified as follows: Change the sign: C D Build the bar: C D C + D = C D

Distributive rules Just like expanding brackets in Mathematics, you can use distributive rules in Boolean algebra as follows: (B + C) = B + C Examples Example 1 Simplify the Boolean expression + B + B Use De Morgan s laws Break the bar and change the sign = + B + Use + = 1 = B + 1 Use + 1 = 1 = 1 Example 2 Simplify the Boolean expression C B + C B C B + C B Take out B as a common factor B ( C + C) Use + = 1 B ( 1) Use + 1 = B