The main points of boolean algebra is that there are only two states, true or false, on or off, and in the case of binary number systems 0 and 1. For now we will use the 0 and 1 system because it is also the number system used in computers. There are several operations that can be done in a binary or boolean number system to reach desired results. Common operations are AND, OR, and NOT, with more complex operations being made from combinations of these three simple operations. For a short hand we will use * to represent AND (in most texts this will be a small filled in black circle instead of an asterisk), a + to represent OR, and a ' to represent NOT. For example, x * y is x AND y, x + y is x OR y, and x' is NOT x.
Now that we know the components of boolean algebra we can start to build methods to analyze these operations. The most basic method called a truth table. The truth table for the AND operation is given below. Truth tables are built by specifying every combination of variables in an expression, and then the result of the expression for each combination.
x y x*y
-------------
0 0 0
0 1 0
1 0 0
1 1 1
As you can see the result of a AND operation is only 1 if both inputs, which can themselves be expressions that need to be evaluated, are 1. Below are the truth tables for OR and NOT operations. OR evaluates to 1 if one of the two inputs is a 1, and NOT is simply the inversion of the input.
x y x+y
-------------
0 0 0
0 1 1
1 0 1
1 1 1
x x'
------
0 1
1 0
Now that we know what each operation does we can analyze expressions themselves, and ways to simplify them. For example, (x * y)' is the inversion of x AND y, which is sometimes called NAND, or negation of an AND operation. The way to evaluate this expression is to first evaluate x*y for the desired input combination, then apply the NOT operation. From this expression we are evaluating you can interpret that by adding parentheses you can change the order in which operations are executed. Normally NOT operations have the highest precedence, then AND, and then OR operations. And of course parentheses supersede any operations.
The properties you normally associate with regular algebra and math also hold true for boolean algebra. Operations can be distributed within parentheses. For example, x*(y+z) = x*y + x*z = xy + xz. I have also included another common notation in the third part of that expression by omitting the * when referring to an AND operation, the same way a multiplication sign can be omitted in everyday math. The distributive property holds true for OR as well, x+yz = (x+y)*(x+z).
These simple operations should serve as a small primer of boolean algebra and will enable you to get your feet wet should you choose to read more into this topic.
Published by Joe V.
- Job Description & Training for Airfield Operations Specialists Check out this full article to see if you have what it takes to be an airfield operations specialist. See how you can become a part of this very exciting and important profession. Airfield Operations Specialists neede...
- Short Films by Werner Herzog - DVD ReviewNow on DVD, we have the opportunity to see three early short documentaries made during Herzog's creatively fertile period in the '70s, in the collection Short Films by Werner Herzog, recently released by New Yorker Vi...
- Collections of Fiction Short StoriesCollections of fiction short stories are becoming increasing popular in the writing world. Some books listed here to study up on if you wish to venture into that genre.
- Review of Short Cuts by Raymond CarverRaymond Carver's book, Short Cuts, includes a host of short stories guaranteed to intrigue and provoke. The stories are easy to read, short enough to read while waiting for a bus or doctor's appointment, and interest...
- 'Adaptations' a Collection of Short Stories That Became Cult or Classic FilmsThis Adaptations is an anthology of short stories that were the basis for 35 movies. Why do filmmakers adapt from literature, anyway? Editor Stephanie Harrison quotes film theorist George Bluestone: "Film feeds off li...
- Electronics: Digital Circuit Design 1
- Math Logic
- Electronics: Introduction to Boolean Logic
- Abstract Expression Within Logic
- How Computers Add - Binary Addition
- Shoe-Box Time: Operation Christmas Child
- Average Cost Method for Valuating Inventory

