





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























Boolean algebra is defined in terms of two constants (defined above), which we call “0” and “1”. Other courses will call these values “F” and “T”. Boolean algebra is defined in terms of three basic operators: NOT, AND, & OR. Each of these three basic operators can be implemented by a basic electronic device called a “logic gate”. We present the gates along with the definition. NOT This function takes one input and produces one output. The gate is shown below. The circle at the right end of the triangle is important. Algebraically, this function is denoted f(X) = X’ or f(X) = X The evaluation of the function is simple: 0 = 1 and 1 = 0.
Logic OR This is a function of two Boolean variables. We denote the logical OR of two Boolean variables X and Y by “X + Y”. Some logic books will use “X Y”. The evaluation of the logical OR function is shown by a truth table X Y X + Y 0 0 0 0 1 1 1 0 1 1 1 1 The logical OR is extended to three or more inputs by noting that the function has value 1 if any of its inputs has value 1, and has value 0 only if all of its inputs have value 0.
Consider the following two examples of CNF SAT. B 1 = ^ X^ ^ Y^ X^ ^ Y^ X^ Y B 2 = ^ X^ ^ Y^ X^ ^ Y^ X^ ^ Y(X + Y) The expression B 1 is easily seen to be satisfiable. If X = 0 and Y = 0 then B 1 = ^0 ^0 ^0 ^0 ^0 ^0 = (1 + 1)(1 + 0)(0 + 1) = 1 1 1 = 1 The expression B 2 is shown to be not satisfiable, but this requires a bit more work. We shall show that on the next slide. NOTE : Each of these two is easy for two reasons.
If X = 0 and Y = 0 then B 2 = ^0 ^0 ^0 ^0 ^0 ^0 (0 + 0) = (1 + 1)(1 + 0)(0 + 1)(0 + 0) = 1 1 1 0 = 0 If X = 0 and Y = 1 then B 2 = ^0 ^1 ^0 ^1 ^0 ^1 (0 + 1) = (1 + 0)(1 + 1)(0 + 0)(0 + 1) = 1 1 0 1 = 0 If X = 1 and Y = 0 then B 2 = ^1 ^0 ^1 ^0 ^1 ^0 (1 + 0) = (0 + 1)(0 + 0)(1 + 1)(1 + 0) = 1 0 1 1 = 0 If X = 1 and Y = 1 then B 2 = ^1 ^1 ^1 ^1 ^1 ^1 (1 + 1) = (0 + 0)(0 + 1)(1 +0)(1 + 1) = 0 1 1 1 = 0
The problem 3–SAT refers to the determination of whether or not a Boolean expression in 3–conjunctive normal form is satisfiable. Recall that a Boolean expression over N Boolean variables is said to be in 3–CNF if each of its terms contains exactly three literals. There are a number of significant facts about 3–CNF satisfiability.
As a problem, SAT originated in formal logic and migrated into Boolean algebra. The problem can be expressed in terms of Boolean combinational circuits that are used in digital design and commonly discussed in courses on Computer Organization and Computer Architecture. A Boolean combinational circuit with N Boolean inputs is said to be satisfiable if and only if there is a truth assignment to the inputs that causes the output to be 1. The Circuit Satisfiability Problem is thus: “Given a Boolean combinational circuit composed of AND, OR, and NOT gates, is it satisfiable?” One of the interesting results of this equivalence is that one can use some of the tools developed for simplification of Boolean expressions in digital design to determine the satisfiability of any Boolean expression. Put another way, both Karnaugh Maps and the Quine–McCluskey methods will solve the 3–SAT problem. Unfortunately, neither is very good at that. We now discuss Karnaugh Maps, also called “K–Maps”, and then apply the results to an understanding of Boolean satisfiability.