Logic Gates:

Outline:

  • Definition of a gate
  • Basic Gates
  • Multiple Input Gates
  • Representing De Morgan’s Laws

A logic gate is defined as the basic element of circuits implementing a boolean operation. The most basic logic circuits are the OR gates, AND gates, and the inverters, or NOT gates. All boolean functions can be written in terms of just these three logical operations.

Main Gates:

AND Gates

The AND gate produces a HIGH output (value 1) when all inputs are HIGH; otherwise, the output is LOW (value 0), in the case of computers of course, the HIGH and LOW is the voltage being passed through the computer. This is what it looks like, and the notation for it in boolean algebra:
Pasted image 20261112173127.png

OR Gate

The OR Gate produces the HIGH output (value 1), whenever any of the two inputs is HIGH; otherwise, the output is LOW (value 0). The following is what the logic gate looks like, notice the slightly more rotund shape as compared to the AND gate:
Pasted image 20261112173309.png

Inverter/NOT Gate

The inverter gate, also known as the NOT gate, produces the opposite output of the input. When the input is LOW, the output is then HIGH. If the input is HIGH, then the output is LOW, this is what the gate looks like, it has a little triangle then circle:
Pasted image 20261112173427.png


Other Gates

So all of this gates can be derived from the above 3 gates, but they are basically really useful because they end up just being short hand for the combination, and get used a ton in more complicated circuits.

XOR Gate:

The XOR Gate is true only when the values of the inputs differ. It takes in two outputs and as long as one is HIGH and the other is LOW, high comes out, if both are HIGH or both are LOW, then LOW comps out. This is basically like the combination of xy' + yx' Which to say either x and not y or y and not x. This is what she looks like:
Pasted image 20261112173726.png

NAND Gate

The NAND Gate is basically the same thing as saying “Not AND”, so in theory something akin to (xy)' which we know by De Morgan’s can also be written as x' + y', so we are basically only true if either x is not true, y is not true, or if they are both not true. It is basically in the shape of a regular AND gate but with an inverter in front of it:
Pasted image 20261112174021.png

NOR Gate

The NOR Gate is basically the same thing as saying “Not OR”, so you basically invert the OR operation, which is written as (x+y)' or by De Morgan can be written as x'y'. This means that this output value is only HIGH whenever both x and y are false, and is LOW in all possible other scenarios. It looks just like the OR gate but with the not in front of it:
Pasted image 20261112174200.png

NXOR Gate

This one is basically the inversion of the XOR gate, so basically “not XOR”, this means we can write it as: (xy' + x'y)' which of course by De Morgan’s Laws then lets us write it all out as: (xy) + (x'y') this is to say basically we are only true whenever one of the two inputs is different from the other, and we are false whenever they are the same, it looks like XOR gate but with the inverter at the end:
Pasted image 20261112174619.png

Multiple Input Gates:

AND, OR, XOR, and NXOR are all COMMUTATIVE and ASSOCIATIVE, this means that they can extend to more than two inputs and still end up with a single output, as they just get foiled out whichever way they end up going, it doesn’t matter as the answer is the same.
Pasted image 20261112174806.png

Notice though, the NAND and NOR, are both commutative, but not associative. This means that although you can switch them around to a certain degree, at least with two elements, you cannot outright solve them or foil them out in whatever order you would want. This can make it less obvious when you want to extend the number of inputs. We must use the correct parentheses for these two operations

De Morgan’s laws using the Logic Gates:

Pasted image 20261112175018.png

Once again, just invert the incoming inputs, and then also invert the operation being performed, that is all that needs to be done. Technically I don’t outright see the point of this as just having the regular operation and then a not gate feels less complicated? But it is still applicable because De Morgan just touches everything with his laws


Combinational Circuits

Outlines:

  • Definition of a circuit
  • Building a circuit from a function
  • Writing Boolean Expressions From a Circuit
  • Building a circuit to model a problem

A Combinational Circuit also known as a Logic Network are a combination of different logic gates designed to model Boolean Functions. So a combinational circuit is a circuit that implements a boolean function.

The logic values assigned to the output signals is a Boolean function of the current configuration of input symbols. Basically a way of mapping out inputs to outputs through a boolean function I think.

Given a boolean function we can then implement a logic circuit representing all the different states of the function. Now of course we want this to be as simple and small as possible for both the sake of understanding as well as the sake of computation. So we want to minimize the number of gates used.

A single Boolean Function can, by this logic, be implemented in many different ways using circuits. Some more efficient than others. Take for example the boolean function f(x,y,z) = x + y'z.

  • We know this to read out as x OR not y AND z. So intuitively we can create a logic gate that first evaluates the y with a NOT gate, and then tosses that input into an AND gate with Z, and then finally that output is put into a OR gate with X.
  • Pasted image 20261112194029.png

Equally, if we have a logic network, we can then work backwards from that given logic network and then use that to create a boolean expression. Instead of this time working from the most bonding precedence to the least, we do the opposite allowing us to basically go in reverse. So imagine the following circuit:

Pasted image 20261112194147.png

We can label all of the input values as w, x, y, z so we have a four variable function here right. Now that we have the labels, lets say going in ascending order, so z on top, w on bottom, we can work out a boolean function. We know that w is outside so:

  • we have w + (something else)
  • Next we know that we have x and some other value so: w + (x*something else)
  • Now we have both values y and z with a NOR gate, so we have another expression of addition, followed by: w + (x(y+z)'))`
  • Now this is technically good enough to describe it, but cleaning it up a bit we should get: w + x(y+z)' as our final boolean expression

We can see this is in fact the truth, he just switched around the values a little bit:
Pasted image 20261112194535.png


We can actually then use these combinational circuits in order to model a problem that we can then use to solve specific problems like addition, multiplication, decoders, and multiplexers, the steps for this are as follows:

  1. Labeling the inputs and outputs using variables
  2. Modelling the problem as a boolean expression
  3. Replacing each operation with the equivalent logic gate to build the circuit.

So, with this let us consider building an addition circuit for something like two single bits being added right. The truth table for this is as follows:
Pasted image 20261112194827.png

Now from this we know that the sum can be represented by a simple XOR operation, so sum = xy' + yx' = x ⊕ y. Then we can see that the carry is the simple AND operation, so carry = xy.

With this we can then build a logical circuit for this because now that we understand the boolean function for our value, we just do what we did above to make it a logic network.

Pasted image 20261112195019.png

Now, this kind of adder is certainly a bit limited, in the sense that there is no provision for the carry input, since we are limited by the value existed by it, but theoretically we can hook it up to some more logic and then end up with a way to do things like multi-bit addition. So let us try to build a full adder, which needs to account for the possible extra carry bit:

Pasted image 20261112195248.png

From this, we can then derive that: sum = x ⊕ y ⊕ carry in and that carry out = xy + carryIn * (x⊕y). And from this we can once again build a circuit that allows us to continuously repeat the operation of this addition for however many bits need be, letting us find better sums:

Pasted image 20261112195509.png


Simplification of Circuits

Outlines:

  • Benefits of Simplification
  • Algebraic Simplification
  • Karnaugh Maps (Kmaps)

Benefits of Simplification:

Now, we understand that EVERY boolean function can be written as a sum-of-product, but this formulation is not necessarily the most optimal in terms of the number of gates and the depth of the circuit. This is because it can take a lotttt of logic gates the more and more variables that you end up having right. This is why circuits need to be simplified

Simplification of circuits, also called minimization or optimization, is beneficial in circuit design because it:

  • Reduces the global cost of circuits by reducing the number of logic gates used. Important when materials for circuits are VERY expensive. Silicon isn’t cheap.
  • It might also reduce the time computation cost of a circuit
  • Allows more circuits to be fitted on the same chip, leading to more powerful chips.

Algebraic Simplification

Algebraic Simplification: is based on the use of Boolean Algebra Theorems in order to represent and simplify the behavior of Boolean functions. So think of things like the absorption laws and all of that shit.

To produce a sum-of-products expression, we usually need to use one or all of the following theorems:

  • De Morgan’s law and involution
  • Distributive Laws
  • Commutative, idempotent, and complement laws
  • absorption law

This basically allows for you to reduce the actual number of different operations and uses of variables in order to still achieve the same equivalent boolean expression. Taking out unnecessary things that do not need to be considered allows for better computation.

Take this expression for example: E = ((xy)'z)'((x'+ z)(y'+z'))'.

  • Of course, the first and most painful part is to apply the laws of De Morgan, starting from the inside out:
  • E = (xy+z') * (xz'+yz) So, notice that with just that, you got rid of so many fucking NOT gates just right away right. However, we are technically not done yet, given we exist over multiplication, we can distribute
  • E = xyxz' + xz'z' + xyyz + yzz' Now with this we can once again really simplify out here because we have a few contractions and what not: E = xyz' + xz' + xyz
  • Finally, given what we have, we can just use the law of absorption to simplify it out further: E = xyz + xz'

Now to extend this out to our full adder example, we can build a sum-of-products to form the two functions from the table:

Pasted image 20261112201702.png

Note: Let Carry-In = Z
Sum = x'y'z + x'yz' + xy'z' + xzy.
Carry Out = x'yz + xy'z + xyz' + xyz

Now this is obviously quite a lot of extra bullshit that we got going on here right. This can then be simplified out using the laws of boolean algebra. We can basically distribute out for the sum in the following way:

  • Sum = z'(x'y + xy') + z(xy + x'y')
  • Now this therefore makes it very obvious we have a simple XOR gate and then an NXOR gate, so we rewrite as: Sum = z'(x ⊕ y) + z(x ⊕ y)'
  • Now given this, it’s a bit more complicated but we can then understand we can use another XOR gate here: z' ⊕ (x ⊕ y)
  • So, instead of having like well over ten different logic gates, we basically went down to about 3 or so.

Now can do similar for the carry out variable, where we distribute out all of the values with the z and the z prime:

  • Carry Out = z(x'y + xy' + xy) + z'(xy)
  • Which through some bullshit basically ends up being: xy + z(x⊕y), exercise left up to chatgpt or something

Karnaugh Maps:

A Karnaugh Map or (K - Map) is a graphical representation of boolean functions and is different from a truth table. It can be used for expressions with 2, 3, 4 or 5 variables, where in some cases a truth table may be too tedious to use.

A K-Map is shown in an array of cells, and cells differing by only one variable are adjacent. the number of cells in a given K-Map is the total number of possible input variable combinations, which equals 2^k, here is an example of one:

Pasted image 20261112203649.png

So consider the following truth table with 3 different variables:
Pasted image 20261112203731.png

Given this, we have out three variables, and then we would need to have a 3-input K-Map, for which we identify all of the 1 values first.
We then group each 1 value with the maximum possible number of adjacent 1 to form a rectangle, power of 2 long, so (1, 2, 4, 8,…)
We then write a term for this rectangle, which for the above table is:

y’z’y’zyzyz’
x’0010
x1111

We know that we have a intersection between a row of 1 and a column of zero at x and yz this means that we know we will get a value of zero at either x or yz, so we can define the function as x + yz

Problem Sheet:

“tutorial-topic-5-boolean_algebra.pdf” could not be found.

Essential Reading:

Read the following pages to consolidate your knowledge of these topics: the definition of a gate and a circuit; writing Boolean expressions; and circuit simplification (including algebraic and Karnaugh maps).

Please also complete the following exercises from the same book (Koshy 2004):

  • p.829, exercises 1–10 
  • pp.837–838, exercises 1–10, 12, 28
  • pp.849–850, exercises 1–5 and 25–31.

Reading Notes:

Boolean algebra is good for the construction of a DNF, and gives you the ability to study more practical electrical circuits. With this, we can have electrical components of a circuit perform the fundamental operations of boolean algebra.

In an electrical circuit, the bits 0 and 1 indicate a low and a high voltage. Within the circuit, tiny things called gates accept one or more input signals, and produce a single unique output signal.

We can define a gate as a function from B^n to B where B denotes the boolean algebra language of {0, 1}. There are three fundamental gates that all others are made out of AND, OR, NOT, these are the product, sum, and complement operations in boolean algebra.

And Gate

The and gate takes in two arbitrary bits x and y as input, and produces the output xy, where basically:

Pasted image 20261115135827.png

This is generally denoted with a sort of half circle or a half circle with a rectangle pretty much, at least in the circles of electrical engineering. The output corresponds with that of the AND or product operation, in the sense that both x and y have to have a value of 1 to produce an output of 1, otherwise the output is 0

A good example of where something like the and gate would be used is just like how you would with things like propositional logic and what not, if this and this, then this sort of. So in the below example, if the tractor is on, and the mower is engaged, then it mows the lawn.

Pasted image 20261115140101.png

OR gate

The OR gate also receives two bits x and y as an input and then outputs a single output that is generally denoted by x + y, it looks like this:

Pasted image 20261115140303.png

Basically representative of the OR operation, and is used for seeing if one thing or the other thing is true, then the output is also true. The logic gate symbol for the or operation looks like a slightly more pointed and gate pretty much. Basically the disjunction of two propositions for a given truth table.

NOT gate

The NOT gate receives a single input and then outputs a single output that is basically the equivalent to the compliment of the input that was received. So if high voltage comes in, low voltage comes out, and if low voltage comes in, then high voltage comes out. It looks like a triangle with a circle at the tip of it. Sometimes called an inverter gate

Pasted image 20261115140525.png

Pasted image 20261115140549.png


A lot of shorthand also exists for gates that are basically some simple combinations of these few gates, just easier to denote them then have an extra logic gate pretty much:

NAND and NOR

These are basically the combination of the NOT gate with the AND / OR gate respectively. All they do is just basically the standard thing that the AND and OR gates do, but just negated they follow the given circumstances and their logic gate representation is basically just that of whatever the AND or OR gate looks like but with a little circle at the tip of the gate to represented the compliment:

Pasted image 20261115141132.png

Pasted image 20261115141148.png


Combinational Circuits

A given logic gate, like the ones described above can be used together in order to construct something called combinatorial circuits for a variety of applications. A combinatorial circuit has no memory, but it produces a unique output for every combination of input signals.

The thing is that the output does not depend on previous inputs or the state of the system, this is unlike things called sequential circuits which do in fact depend on previous inputs and states of the system. Here however, are two examples of combinatorial circuits:

Pasted image 20261115141503.png

The first one contains the AND gate and then a NOT gate right after, little known fact, this is actually exactly the same output as what the NAND gate is. The one below it contains three gates, the two first ones are basically the NAND gate all over again, but that feeds into an OR gate with another input from the start.

Now, each one of these can be represented as a boolean expressions, and I will do so now. For the first figure we have (xy)' and then for the one after it we have x + (yz)' For this equation we can then obviously use a truth table in order to see all of the possible final outputs of every possible input:

Pasted image 20261115142418.png

As we can see, we end up with only one possible solution in which the circuit gives us low voltage, and that is when x is equal to zero, and both y and z are equal to one. This makes sense of course since we end up with a 0 + 1' = 0 + 0 = 0.

In a combinatorial circuit we can also have out voltage branch out, so for the circuit representing the boolean expression xy + y:

Pasted image 20261115142621.png

You can see that the value of y is branching out to both the and gate as well as the or gate. The issue here of course is that by the laws of absorption, the actual value of x does not matter at all, and this entire circuit can be reduced down to the value of y. As it might have become apparent, we can actually construct a circuit from a boolean expression and then vise versa as well.

Say we wanted to construct a circuit to represent the boolean expression: (x+y)z + z'. Here is how that would look like:

Pasted image 20261115142934.png

We basically start with the order of operations for the innermost operation. So the steps for solving the expression, you start with the first step. This is the and operation and gate between the two values of x and y. With this then however we have an and operation with the letter z, so we take the output of the letter z and apply the AND gate with the output of the x or y OR gate. Then we see we compare this with the compliment of Z, and so we apply the NOT gate to z and then have this output and the previous (x+y)z output both go into an or gate to represent the final expression. Now to expand this example, we can also have an expression that would take in multiple values for the OR and AND gates, this is because these values are associative and so can be evaluated in any order and still have the same result:

Pasted image 20261115143236.png

This is useful for things like light fixtures in hallways which are generally controlled by two or more switches. When the toggle of one of the switches is flipped, the light is turned off, however, if the light is then off, then flipping one of them turns the light on. We then attempt to try and simulate a combinatorial circuit for this.

We know that we need to have three variables x, y, z as a means of denoting the three given light switches that we have right. Then f(x,y,z) which we will let equal 1 to denote that the lights are on correct. We also then know that f(0, 0, 0) = 0 so when all three of the lights are off, then we know that the light is off as well.

If one of the lights is then turned on, so f(0, 0, 1) = f(0, 1, 0) = f(1, 0, 0) = 1 right. But then if a secondary light is then flipped on, then we have the whole thing as off, so if there are 2 ones, then we are off, if there is a single 1, then we are on, if there is all 1 then we are on, and if there is no on, then we are off. We can represent this using the following truth table to represent and build out boolean expression:

Pasted image 20261115143648.png

Using this we can construct the boolean expression using the sum or products form to be: f(x,y,z) = x'y'z + x'yz' + zy'z' + xyz With this we can now obviously build this rather obtuse looking circuit:

Pasted image 20261115143816.png

Each one of the gates represents one of the products that we end up having, hence the reason for the four given AND gates, then we also have the final OR gate as a way to represent the sum of these products. This is of course an obtuse way of doing this, and so I wonder if there would be a way to have this circuit become more simplified. As a matter of fact it can, and it becomes x ⊕ y ⊕ z because you get (x'y' + xy)z + (x'y + y'x)z' So you have the XOR and then NXOR, and here is the rest of the steps I will not write out:

Pasted image 20261115144228.png


Binary Addition

In order to find the sum of any two binary numbers, we can basically use this table:

Pasted image 20261115145739.png

Where in which we basically add in the 0 or the 1, and we end up with either 0 or 1, but then if we have something like 1 + 1 then we carry on over to the next bit and have a 1 there. Like whenever you add 2 numbers in base 10 and then you need to carry over the one. We also like in regular addition we add on from right to left, and then the carry bit goes left. So if we have something like 1011 + 1110 Then the addition would be as follows:

Pasted image 20261115150000.png

You add in the 1+0 = 1' right. Then you have 1+11=0 but you now have an extra carry bit, so again: 1 + 0 + 1 = 0 and the carry bit carries over, then you have 1+1+1 = 1 because you eval to (1+1 = 0)+1 = 1 with the carry over bit, so the final solution is 11001

So, now suppose that you would like to design a circuit that will add any two bits x and y. Now from the table we can build up a given solution for both the sum and the carry values, this being c = xy and s = xy' + x'y = (x+y)(xy)' = x⊕y Thus, with this we can create the half adder circuit:

Pasted image 20261115150345.png

We can certainly make this a lot easier with the XOR gate, but for now we essentially that the values of x+y with xy, we negate this value and toss it into an and gate for (x+y)(xy)', which results out in our sum. We then have this alongside our C which we calculated along the way. Now, this is only considered a half-adder because it does not consider the carry bit from a possible previous addition. So it is a bit incomplete

So, we can attempt to make a full-adder which does in fact take in consideration for the extra possible value of a previous carry one. For this however, we now need an extra value ci which denotes the possible carry value. From the table that we can make, we have both the table and the given sum of product equations for both the sum and the carry bit:

Pasted image 20261115150707.png

To represent this we basically use two half adders. We have the original half adder which calculates both the given sum and then the carry right, we then take this sum and then toss it into a second half adder that adds this sum with the possible carry bit, so you add the sum and the previous carry. This then results in another possible carry value, either from the original half add, or from the second half-add, this becomes the new carry value in the whole cycle, and then the standard sub exists as well. This lets us use this in a cycle kind of method, and here is the circuit to represent it:

Pasted image 20261115150944.png


Minimization of Combinatorial Circuits:

Now, we understand that every single combinatorial circuit can be represented by a boolean expression. So, if we wanted to simplify these expressions, this would basically be the same thing as simplifying out those circuits right. Now we can do this in two ways, we can either use the boolean algebraic laws, or we can use Karnaugh maps which are easier.

Before this though, here is the equivalence of two circuits. Two circuits are considered to be equivalent if the corresponding boolean expressions are equal. That is to say, for each possible combination of input into the logic circuits, they will always come up with the same output given the same input as each other.

Pasted image 20261115152505.png

This for example showcases two equivalent boolean circuits, the first showcases x'y' and then the other showcases (x+y)' respectively. We know that these two are equal due to De Morgan’s laws, so even though the circuits look different, they are still equivalent. Now, notice that the first circuit contains three gates, while the other contains two, this means that c2 is simpler than c1.

Hence, we can understand that if we want to find a simpler circuit compared to another circuit, what we need to look for is the circuit that has the least number of gates, or I suppose the least number of operations that need to be preformed. Here is an example from the previous chapter;

Pasted image 20261115152825.png

As you can see, we had a circuit and a boolean function in the form of the sum of products. We then used things like the distributive laws, associative laws, and the rules of a tautology and what not in order to group our elements, abstract out a given value, and then simplify it. With this we went from needing about 8 logic gates to really only needing about four maximum, leaving us with a much simpler logic circuit.

Pasted image 20261115153017.png

Now this is all fun and dandy of course, but the issue with it is that it can become very frustrating for the simple fact that you need to be able to group the various terms properly and then “ingeniously” apply the laws of boolean algebra, getting especially complicated whenever you need to add in things like the idempotent laws just to have enough terms to group and simplify:
Pasted image 20261115153330.png

So, there is another way, developed by one: “Maurice Karnaugh”, who developed the graphical method of the Karnaugh Map also sometimes known as the K-Map. In which the essence lies within grouping minterms that differ by exactly one literal.

So, take for instance the minterms xy'z and xy'z', these two differ in exactly one literal, and so their sum can end up shrinking for the fact of a tautology right. So when you have xy'z' + xy'z = xy'(z + z') = xy'1 = xy'. This makes it nice because you can shrink out these two values and showcase that the value of the z does not really matter in this scenario.

The Karnaugh Map itself is a rectangular grid of squares. Each square stands for a possible minterm in the DNF (disjunctive normal form, so only expressed using ∧ ∨ ¬). of the boolean expression that represents the circuit. And, each of the these squares then contains a 1 if the corresponding minterm exists in the expression.

So, let us look at a very simple 2 x 2 K Map which can help simplify the DNF of a boolean expression. We have two variables x and y. We also then have only 4 possible minterms: xy, xy', x'y, x'y' We then create the squares so that way the minterms in any two adjacent squares in each row and column differ by exactly on literal value, kind of like punnet squares from biology:

Pasted image 20261115154019.png

This is a representation of basically all of the possible forms of the expression that we can have as a sum of products right. This is because whenever have something like xy+xy'+x'y+x'y', we can no longer simplify this without the use of non disjunctive form, we can with things like XOR, but still. It does not outright mean that we cannot simplify this further however using logic, here is how.

So if we had something like the expression: xy+x'y + x'y' or xy'+x'y or even x'+y, then the corresponding K map for this value would be as follows:

Pasted image 20261115154517.png
Pasted image 20261115154528.png

Now this makes sense in part right. We can see for example that in that first K Map we end up with a 1 that corresponds to each of the terms that we had in our SOP form. We have no x'y' in that given expression, and so the box corresponding to this is in fact blank.

However you still have to notice that we can simplify this out. Look at the given expression: xy+x'y + x'y' we know we can rewrite this as xy + x'(y+y') which is then xy + x' which we then know by the laws of absorption becomes y + x'.

So we know how we did that using the boolean expression values right, but then how can we also look at this from the point of the K Map? Well what we need to do is circle out the blocks containing one within our map, always beginning with the largest block. With this we can then always reduce the min terms corresponding to the blocks.

Pasted image 20261115155014.png

Another example however would then be something like xy' + yx', and this is how the given K Map looks for that:

Pasted image 20261115155122.png

Now notice here that the two values that have a 1 on them are NOT adjacent to one another, and so they cannot be circled, this tells us that because our circles end up not having any actual overlap with one another, that there is no way for the expression xy'+yx' to be simplified and still remain in disjunctive normal form.


K-Maps with multiple terms

Now, what if we have an expression that is comprised of multiple different variables x, y, z well in this case the K Map expands out to a 2 x 4 rectangle. Each of the eight squares still follows the exact same rule however, where miniterm has a row and a column where are both adjacent miniterms to that term that has only one differing literal. So see the given example:

Pasted image 20261115155518.png

Once again this proves very useful as a way to simplify the sum of miniterms in x, y, and z. You can identify the blocks of adjacent values of 1, and then see what circles overlap and the way in which the two of them can be combined. Making sure to always start with the largest block. Of course with this we have new dimensions, a block may now be 1x1, 1x2, 1x4, 2x2, or 2x4

Pasted image 20261115165157.png

So, we have an understanding of these two blocks that exist here right. That means that whenever we can expand this out using the SOP form, for the first figure at the very least to be: xyz + xyz' + xy'z + x'y'z. Now of course the thing is that these being two adjacent terms we can then actually simplify them out since we know if two adjacent terms are true we can pull out a tautology. So we end up with:

Pasted image 20261115165412.png

This is also the simplest form that we can get to for the first figure, as we see no overlap. This is then unlike the second figure which is in fact overlapping right. Now, the statement is always true no matter what if x is true. So we know we have x + (some other term) right. Now, that’s just a little skip, but basically we end up with the equation of (xyz + xyz' + xy'z' + xy'z) + (xyz + x'yz) Now, because all of the values are adjacent whenever have the x, we know we foil down to x by a bunch of tautologies. Hence, we also know the same to be true for the other block, we boil down to yz so our final expression is x + yz:

Pasted image 20261115165909.png


Four Variable K-Maps:

These will mostly be photos, the rules of things being adjacent and what not still work. I really think it is best to try and write out all of the given possible terms and then see which ones are adjacent and boil down to help you see which tautologies can be pulled out of where:

Pasted image 20261115170032.pngPasted image 20261115170054.png
Pasted image 20261115170107.png
Pasted image 20261115170204.png