boolean algebra, simplify going wrong!

182 Views Asked by At

so this might sound stupid but I have a problem when it comes to simplifying terms. lets take this simple term as example (it was taken from a truth-table where these are the 0 results, that means DNF right?): $$\neg a * b * \neg c * \neg d + \neg a * b * c * \neg d + a * b * \neg c * \neg d + a * b * c * \neg d$$

My first step would be looking for multiple appearances of a variable, I took b because it is in every block. I would do it like this:

  1. $b*(\neg a + \neg c + \neg d + \neg a + c + \neg d + a +\neg c + \neg d +a + c +\neg d)$, distributive law?
  2. sort: $b*(a+a+\neg a+\neg a+c+c+\neg c+\neg c+\neg d+\neg d+\neg d+\neg d)$, commutative law?
  3. $b*(a+\neg a+c+\neg c+\neg d)$, because $a+a = a$
  4. $b*(1+1+\neg d)$, because $a+ \neg a = 1 $
  5. $b*(1+\neg d)$
  6. $b*(1)$, because $a+1 = 1$
  7. $b$

so my result would be $b$ but it seems wrong. What am I doing wrong? it feels like I am always using the wrong rule!

I appreciate your help, I have looked through other asked questions but they couldn't answer my question! I know that I have knowledge gaps in terms of simple mathematical term-laws

2

There are 2 best solutions below

7
On BEST ANSWER

You're changing multiplication into addition! It's like doing $$ abcd+xbyd=b(a+c+d+x+y+d) $$ whereas it should be $$ b(acd+yxd) $$

Starting from $$ \neg a * b * \neg c * \neg d + \neg a * b * c * \neg d + a * b * \neg c * \neg d + a * b * c * \neg d $$ collect $b*\neg d$ and go on: \begin{align} b*\neg d*(\neg a*\neg c+\neg a*c+a*\neg c+a*c) &=b*\neg d*\bigl(\neg a*(\neg c+c)+a*(\neg c+c)\bigr)\\ &=b*\neg d*(\neg a+a) \\ &=b*\neg d \end{align}

In slow motion: consider the expression in parentheses $$ \neg a*\neg c+\neg a*c+a*\neg c+a*c $$ You can collect $\neg a$ from the first two terms and $a$ from the other two, getting $$ \neg a*(\neg c+c)+a*(\neg c+c) $$ Now recall that $\neg c+c=1$, so we get $$ \neg a*1+a*1=\neg a+a=1 $$

0
On

Your mistake is in the very first step.

Taking out the $b$ from:

$$\neg a * b * \neg c * \neg d + \neg a * b * c * \neg d + a * b * \neg c * \neg d + a * b * c * \neg d$$

you should get:

$$b*(\neg a * \neg c * \neg d + \neg a * c * \neg d + a * \neg c * \neg d + a * c * \neg d)$$