logic (from london)

# logic (from london) - Lecture 1 An Introduction to Boolean...

This preview shows pages 1–2. Sign up to view the full content.

DOC112: Computer Hardware Lecture 1 Page 1 Lecture 1: An Introduction to Boolean Algebra The operation of almost all modern digital computers is based on two-valued or binary systems. Binary systems were known in the ancient Chinese civilisation and by the classical Greek philosophers who created a well structured binary system, called propositional logic, in which propositions may be TRUE or FALSE, and are stated as functions of other propositions which are connected by the three basic logical connectives: AND, OR, and NOT. Hence the statement IF it is raining OR the weather forecast is bad THEN I will take an umbrella with me connects the proposition I will take an umbrella with me functionally to the two propositions it is raining and the weather forecast is bad . We can see that the 'umbrella' proposition can be considered as output while the other two as inputs and consequently a simple block diagram of this rule can be drawn (Diagram 1.1). The meaning of the OR connective is that the output is TRUE if either one of the input propositions is TRUE. Since there are only two possible values for any proposition, we can easily calculate a truth value for I will take an umbrella for all possible input conditions. This produces the Truth Table of the basic OR function as: Raining Bad Forecast Umbrella FALSE FALSE FALSE FALSE TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE We can make the propositons as complex as we require. For example, if we want to include the propostion I will take the car , we may make a statement such as:

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern